Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google sign in doesnt work on production

I have a problem with google sign in on production installation file. On debug installation everything is normal I can login into the application. But after changed on release i get null on account from google response. What could have been problem?

I worked with ("https://developers.google.com/identity/sign-in/android/start-integrating"). every step same.

like image 995
gambitdm Avatar asked Feb 19 '16 09:02

gambitdm


People also ask

Why does sign in with Google not work?

Your sign-in may be blocked if the device or location you're using is new. Try again from a device or location that you commonly sign in from. Sign in to your Google Account on the new device and try again the following week.


2 Answers

I know this is an old question, but for anyone using Firebase, you have to add the SHA-1 fingerprint to the Firebase Console > Settings > Android App page.

If you are using the Google Play Console, you can get this from the Google Play Console > App Signing page. There will be two of them (the one you signed your app with, and the one that Google signed your app with). You'll need to add both so you can test local release builds.

If you don't use the Play Store, you'll need to get the SHA-1 fingerprint from your keystore file using these directions: https://developers.google.com/android/guides/client-auth

like image 166
Dan Sterrett Avatar answered Oct 25 '22 16:10

Dan Sterrett


You need to have a configuration file with,

Android Signing Certificate SHA-1 with release key so only it will work with release build

like image 33
Madhur Avatar answered Oct 25 '22 16:10

Madhur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!