I am trying to integrate Google Sign In into my app. I don\'t have a back-end server, I am just getting the details of the logged on Google Account to my app.
I firs
Check if SHA-1 fingerprints are added to the firebase project settings. If not,find SHA-1 fingerprint using
https://developers.google.com/android/guides/client-auth
Also, find the SHA-1 fingerprint of release key using
keytool -list -v -keystore
Remove with the path of the key store.
Then add both SHA-1 fingerprints to firebase projects settings.
NB: Don't forget to replace google-services.json with updated google-services.json with new fingerprints. I lost two days on that.
Android studio automatically generate ~/.android/debug.keystore on first debug build and use it to sign the app.
To get the SHA-1 run (password android) (doc):
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
This SHA-1 should be added to the app settings at firebase to allow usage of google sign in capabilities while testing debug build.