How to integrate Firebase Invites?

Hi All,

I have created a Xamarin Forms Application and deployed on Android. Now I want to use Firebase Invites in my app. I have a page developed in my cross platform project having a button, on clicking it I want to invoke intent created using AppInviteInvitation.IntentBuilder. Can you please let me know how can I do it?

Thanks & Regards,
Amit Kulkarni.

Answers

  • FYI, I am trying to use Xamarin.Firebase.Invites library. My app starts crashing as soon as I call

    mGoogleApiClient = new GoogleApiClient.Builder(this)
    .AddApi(AppInviteClass.API)
    .EnableAutoManage(this, this)
    .Build();

    from my android MainActivity.OnCreate

    Also I have already added google-services.json by creating my app on Firebase. Just that I created that file when I integrated Messaging which works fine for me. Not sure if I need to change anything in it for Invites?

  • ChristopheBERNARDChristopheBERNARD BEMember ✭✭✭✭✭

    Hello,
    never try firebase invites but have you add permission > internet ?
    read this article it can help you
    https://www.c-sharpcorner.com/article/implementing-firebase-invites-on-android/

  • Yes I have added Internet permission. BTW given link shows how to use it in pure android app developed using Android Studio and not the Xamarin.

  • ChristopheBERNARDChristopheBERNARD BEMember ✭✭✭✭✭

    @amit_kulkarni83 Yes often when i search to do some trick i found a sample in java but you can find the correspondance ..

  • amit_kulkarni83amit_kulkarni83 Member ✭✭

    Now, Invite screen appears but as soon as I select any contact, activity terminates and OnActivityResult I get result code as Canceled. Any clues?

  • ChristopheBERNARDChristopheBERNARD BEMember ✭✭✭✭✭

    Hello @amit_kulkarni83
    did you follow the link i provide ?
    Put a break point i think it's just a problem of configuration ...

    as i said before i've never try firebase invites but after some minutes of search on google perhpas try this solution

    https://github.com/googlesamples/google-services/issues/145

    and add my name as this i can receive a notification when you post a reply

Sign In or Register to comment.