Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase invites links through mail giving 404 error

I have firebase invites in my app. I send invites through mail and messages for both ios and android plateforms. When i send it through messages, it works fine in both the devices, it opens app in play store in android and app in app store in iphone. But when i send the invitations through mail, on clicking on the install link, it gives 404 error.

link description here

This is the link i get when i open it in android or iphone.

This is the code i am using to invite.

// Invite friends
id<FIRInviteBuilder> inviteDialog = [FIRInvites inviteDialog];
[inviteDialog setInviteDelegate:self];


FIRInvitesTargetApplication *targetApplication = [[FIRInvitesTargetApplication alloc] init];
targetApplication.androidClientID = @"android_client_id";
[inviteDialog setOtherPlatformsTargetApplication:targetApplication];    
NSString *message = [NSString stringWithFormat:SHARE_MESSAGE];

[inviteDialog setMessage:message];

[inviteDialog setTitle:@"Invite Friends"];

[inviteDialog open];

Please help me with this issue. Any help would be appreciated. Thanks

like image 560
Ankur JAIN Avatar asked Oct 29 '22 05:10

Ankur JAIN


1 Answers

I got that 404 too and found that I had to specify a deep link. It doesn't seem to matter what the link is, though I'm using my website. Without the deep link this seems to fall back to appinvite, the older SDK. With it it uses the Firebase Invite SDK.

like image 173
Lawrence Kesteloot Avatar answered Nov 15 '22 06:11

Lawrence Kesteloot