react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.18k stars 877 forks source link

Does not working on Android real device #264

Closed feelinc closed 7 years ago

feelinc commented 7 years ago

This problem happen on android real device (debug and release), working correctly on android virtual devices.

There is a black background on notification bar after calling the "GoogleSignin.signIn()", but no google signin screen appear.

The app then crash after I tap the back navigation on the device, with error : Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.auth.api.signin.GoogleSignInResult.isSuccess()' on a null object reference at co.apptailor.googlesignin.RNGoogleSigninModule.handleSignInResult

shyam528 commented 7 years ago

App is working on emulator. In my case app is not crashed but google signin is not working on real device

kyle-ssg commented 7 years ago

I could only get this to work on simulator in the end, was getting errorCode:-1 with no description on phone. Ended up switching to react-native-google-sign-in.

nonotest commented 7 years ago

yep can't get it working in release mode either. after selecting the account nothing happens. no error no crash, it just does nothing. tried latest version with rn 0.48 today and same.

nonotest commented 7 years ago

scratch that - make sure you have the properly configured the release fingerprint. works great!

feelinc commented 7 years ago

Turns out probably my real device is having bug (Xioami), because other apps also not working using native Google Signin. I'm closing it.