Google AppInvite

三世轮回 提交于 2019-12-01 20:45:50

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.

You may need to generate your APK in release mode, not debug mode.

simplebe

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.

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!