I tried to implement firebase's google sign-in using react-native-google-signin library. It worked fine on ios simulator, but on android emulator, I got [Error: A non-recoverable sign in failure occurred]
after selecting the google account I want to use from the web view appeared. I am not sure the following things might be the cause for this error:
The documentation says I have to add
classpath 'com.google.gms:google-services:4.4.0'
inandroid/build.gradle
, but since I use React Native 0.71.8, I set it as the most updated version compatible, which is'com.google.gms:google-services:4.3.15'
.I have already published my app on google play store and used app signing, so the SHA1 key I added in firebase's Project settings is the one showing on my google play console in app signing key certificate section. However, I am still not sure is it the correct SHA1 since there are 3 more SHA1 I see from running
./gradlew signingReport
in my terminal.
I have read many threads related to this issue and followed all of them, including setting support email in firebase. Is there anyone knows how to solve this?
[Update]
Now I can make it works on my android emulator by replacing SHA1 from google play console's app signing key certificate with androiddebugkey from running ./gradlew signingReport
in my terminal. However, I still wonder if it is going to work when I publish it to the play store?
[Update 2]
I added SHA1 from google play console's app signing key certificate back to firebase's project settings (so now there are 2 SHA1, androiddebugkey I got from running ./gradlew signingReport
and google play console's app signing key certificate). However, after I generated an apk and installed it on the android emulator, the google sign-in doesn't work.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744766573a4592497.html
评论列表(0条)