Firebase invites links in the mail, giving a 404 error

I have firebase invitations in my application. I send invitations via mail and messages for ios and android plateforms. When I send it via messages, it works fine on both devices, it opens the application in the play store in Android and the application in the application store in iphone. But when I send invitations via mail, when I click on the installation link, it gives an error 404.

link description here

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

This is the code I use for the invitation.

// 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 problem. Any help would be greatly appreciated. Thanks

+5
source share
2 answers

I had to specify appStoreID in the firebase console of my project in order to get rid of this problem. If your application is not in the application store, you can use the dummy for testing purposes, I used id284882215 from facebook.

0
source

I also got 404 and found that I need to provide a deep link. It does not seem to matter what the link is, although I use my site. Without a deep link, this seems to revert to appinvite, the older SDK. With it, he uses the Firebase Invite SDK.

+2
source

Source: https://habr.com/ru/post/1269507/


All Articles