Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google sign in failed on release version

My user cannot login using google sign in after downloading my app. At first I believe its sha1 problem, so I created one for release using keytool with my keystore.

What I've done:

  1. Copied the sha1 to my firebase project setting
  2. Downloaded the googlejson file, put it in my project.
  3. Generate signed apk using the same keystore.

Currently I think I have two sha1 fingerprint certificate listed in my firebase project setting, debug and release version. The weird thing is I can successfully login by running the apk-release.apk from generate signed apk which I directly copied from my pc to my phone. ( I uninstalled the old and install fresh the app). That is the same apk I uploaded to the google play console for public. I don't understand why I get different result.

like image 420
Goofy_Phie Avatar asked Dec 10 '22 10:12

Goofy_Phie


1 Answers

I finally figured it out, for those who have this problem:

i have to get the SHA1 genereated from google play console. its on the Release Management --> App Signing.

if you use firebase, just add that SHA1 to your project setting

like image 187
Goofy_Phie Avatar answered Jan 05 '23 22:01

Goofy_Phie



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!