Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test google signin on Android in development phase

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?

like image 673
redochka Avatar asked Dec 14 '22 09:12

redochka


1 Answers

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

like image 167
Isabella Chen Avatar answered Jan 10 '23 08:01

Isabella Chen