Google signin is always returning signed-out. It always fails when pushing the app on the device using Android studio.
However, when I install the signed app it works.
How can I make google sign in works while we are still developing the app?
At development time, you are probably using your debug key store:
Get the SHA-1 of your debug key cert:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
And register it together your package name in developer console Credentials page as well. (Each pair requires one registration)
You can refer to this post's answer for details: Occured an INTERNAL_ERROR when requestEmail from GoogleSignInOptions Android
Or see below blogpost to understand more about OAuth clients registration:
http://android-developers.blogspot.com/2016/03/registering-oauth-clients-for-google.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With