Realize Google AppInvite
by Google
manual - link.
Start Invite Activity
and get next in the LogCat:
E/AppInvit
I think that it should work automatically, if you have connected your Firebase with your app on Google Play, but you have to download your application from Google Play. I had the same problem and it didn't work in my case, because I had the version of an application which I installed straight from the computer (debug mode).
You may need to generate your APK in release mode, not debug mode.
Have you double-checked your OAuth Client ID of your project in Google Developers Console?
Make sure you correctly put your project's SHA-1 and package name. I suggests you created two client IDs: one with SHA-1 for debug
key, and another for release
key.
You can also safely remove google-services.json
file and apply plugin: 'com.google.gms.google-services'
code in your app-level build.gradle
file since "it is just a quickstart helper to generate some basic android-resource files for easier integration of specific Google API features." as described here.
Did you include the json configuration file?
In firebase console under Project Settings find "Certificate Fingerprints (SHA-1)" part and from the help icon you will be directed to https://developers.google.com/android/guides/client-auth and enter generated SHA1 keys for both release and debug certificate fingerprints. Then resultCode 3 will gone and you will send the invitation.