2

I am trying to send the invitation through emails using Firebase. When i select the user and tap on send, i got an alert view saying invitation has been sent successfully. But i am not getting the email to the invitee.

Here is my code for sending the invite.

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




    FIRInvitesTargetApplication *targetApplication = [[FIRInvitesTargetApplication alloc] init];
    targetApplication.androidClientID = @"Android ID";
    [inviteDialog setOtherPlatformsTargetApplication:targetApplication];

    NSString *message =
    [NSString stringWithFormat:@"Try this out!\n -%@",
    @"Ankur"];


    [inviteDialog setMessage:message];


    [inviteDialog setTitle:@"Invites Friends"];
    [inviteDialog setDeepLink:@"Deep_Link"];
    [inviteDialog setCallToActionText:@"Install!"];

    [inviteDialog open];

At the same time, i am getting the invitation if i send it through phone number.

Any help would be appreciated. Thanks!

Hasya
  • 9,792
  • 4
  • 31
  • 46
Ankur JAIN
  • 111
  • 8

2 Answers2

0

You need to add your team ID in the firebase console, it is also required that you add an App Store id (it's ok to fake one for testing)

Diego Garcia
  • 106
  • 1
  • 5
0

I was having this issue because i have not mentioned the app store id in firebase console. After saving the AppStore ID, the issue got resolved.

Ankur JAIN
  • 111
  • 8