0

I am facing a problem with firebase authentication ( Google sign in) It is running fine when I was testing but after generating signed APK and I installed it manually it's not working, for cross check , I have checked again it working when I am debugging..but in signed APK authentication not working. Please tell me why its happening..

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Farhan Saikh
  • 111
  • 1
  • 16

3 Answers3

4

You need to add the SHA1 of the production certificate in Fireabase. Check this link

TRK P
  • 366
  • 2
  • 9
  • For my case, I added all SHA1 and when I generate a signed .apk and install on the phone, everything works fine but when I published a signed .aab bundle, an error comes "This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase Console" Kindly advise me, this has taken me over 4 days but no success. – Neri Oct 14 '18 at 07:33
1

You are having fingerprint certificate in console, but its only for debugging purposes, for signed apk you need a production fingerprint certificate, and you can get one by

c:\Program Files\Java\jdk1.6.25\bin>keytool -list -v -keystore c:\you_key_here.key
Saheb Roy
  • 161
  • 4
-2

It's simple, download (KeyStore Explorer 5.3.2) and open your .jks file using KeyStore Explorer it will ask for a password, enter your password that you entered at the time of generating signed apk. Then once it gets opened click on entry name there you will see Fingerprint SHA-1 key like (10:02:A6:3E:A9:68:83:FE:F2:66:6F:F8:C4:9D:FF:3C:C2:EA:76:96) this is fake SHA-1 ok, Here

link : https://www.mediafire.com/file/ysm9ajb72u7u9h9/kse-540-setup.exe/file

Vineeth Sai
  • 3,389
  • 7
  • 23
  • 34