I have searched all over the internet about this issues and I have done all solutions provided but still getting the error on Android!
On iOS works perfectly.
I had a project on RN0.59.1 and started rebuilding it on RN0.61.5, so I already had all configurations on Firebase and API Console set up. On the old project Google SignIn was working fine, but on this one I keep getting this error.
I have checked all of these things:
On Google API Console:
On Firebase Console:
On APP:
What am I missing here?? Please help!
Apologies if there's any missing information, I'm new to git issues
hello, did you check this? https://github.com/react-native-community/react-native-google-signin/issues/543 if so, what other issues did you check that did not help? What error exactly are you getting (I think the error instance should have a code field). Thanks.
yes I did :( I checked all answers in that issue and also in #265, #564, #659, and all the links posted in those issues.. And I've done all of the suggested answers but still getting the error.
And I don't get any code with the error, only
LOG: [Error: A non-recoverable sign in failure occurred]
Here is the code:
try {
await GoogleSignin.configure({
webClientId: 'XXXX',
iosClientId: 'xyz',
offlineAccess: true
});
await GoogleSignin.hasPlayServices();
const userInfo = await GoogleSignin.signIn();
return userInfo;
}
catch (error) {
console.log(error);
}
@thiagoloop4 @theill @vonovak @Kudo Yes i am also facing same issue.
I have tried all possible cases to solve this issue.
Any another trick for solve this issue??
Same here. No solution...
I've tried to update name/picture/email in AuthO credentials. nothing change.
I've tried to recreate google-services.json
I've already had a support email in console firebase.
My init looks like:
await GoogleSignin.configure({
scopes: ['https://www.googleapis.com/auth/drive.readonly'],
webClientId: '*************'
});
and the sign in...
const {accessToken, idToken} = await GoogleSignin.signIn();
Any ideas?
Im facing the same problem!
Also my configure method and signin method are the same than above.
Im facing the same problem!
Also my configure method and signin method are the same than above.
@brunnohofmann I've done all the configuration process in the Google console again and it worked. Actually I also removed the "scopes" in the configuration because it ask for the Google Drive permission that I didn't need it. Be sure that the weClientId is unique for your project.
+1 same problem on android, it work well before.
Hi there, has someone the solution for this problem???... please help
I still have the problem. Even doing the configuration process a lot of time :/
I'm also using RN 61.5 and tried every solution possible. I guess this library is broke for RN 61.5, Ive tried GoogleSignin.configure(); with default configuration and I still get the same error:
LOG: [Error: A non-recoverable sign in failure occurred]
I'm running out of ideas here.
Here is solution
https://github.com/react-native-community/google-signin/issues/659#issuecomment-503639347
Here is solution
#659 (comment)
He already did all that
Its oddly working on the release apk, I guess its better this way than the other way around.
hey! is there any update on this issue? using react-native-firebase and also have react-native 61.5. google sign in is working on ios, but i cant seem to get it working for android at all. i have tried every recommendation from all of the reported issues. nothing seems to be working.
same prob. no solution =(
i ended up being able to get it to work by generating my SHA1 again for the debugAndroidTest variant
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
updated the SHA1 in my firebase console and then downloaded the google-service.json again, and it all seemed to work
run gradlew signingReport in android folder and check all the sha1 listed and if you are using firebase then make sure that all the distinct sha1 found in the list is added to the firebase project then download the google-services.json again replace it with the old one in you project and run cd android && gradlew clean and build your project again
i have the same issue but i don't use firebase any solution?
this my issue report:
https://github.com/react-native-google-signin/google-signin/issues/932
suddenly this error comes again
i have the same issue but i don't use firebase any solution?
are you using API Oauth credential?
you can try my solution there https://github.com/react-native-google-signin/google-signin/issues/932
this my issue report:
932
suddenly this error comes again
ok, i have to add SHA-1 for debug keystore in google API.
so, all keystore has to registered and all of them using 1 webClientID.
[FIXED]
NOTE:
check all SHA-1 with
./gradlew signingReport
find "> Task :app:signingReport" and add all of them in Google API Oauth or in Firebase.
[Android]
Everything working perfect on simulator, I get token and can use it. But on real device get this error.
All steps listed in previous issues already completed. But problem still exist.
I get build from app/build/outputs/apk/release/app-release.apk. And make it with command: ./gradlew app:assembleRelease
Resolved, in my case I add only one SHA-1 key from my debug keystore. But it works only on simulators/connected devices. For apk app you should add second SHA-1 from google play to firebase.
Resolved, in my case I add only one SHA-1 key from my debug keystore. But it works only on simulators/connected devices. For apk app you should add second SHA-1 from google play to firebase.
Yes you are right.
I already mentioned above you.
"check all SHA-1 with
./gradlew signingReport
find "> Task :app:signingReport" and add all of them in Google API Oauth or in Firebase."
Most helpful comment
yes I did :( I checked all answers in that issue and also in #265, #564, #659, and all the links posted in those issues.. And I've done all of the suggested answers but still getting the error.
And I don't get any code with the error, only
LOG: [Error: A non-recoverable sign in failure occurred]
Here is the code:
try { await GoogleSignin.configure({ webClientId: 'XXXX', iosClientId: 'xyz', offlineAccess: true }); await GoogleSignin.hasPlayServices(); const userInfo = await GoogleSignin.signIn(); return userInfo; } catch (error) { console.log(error); }