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 <keystore path>
Remove <keystore path> 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.
For me the problem was using a 'release' ClientID with my debug-configured app. Make sure you have a release and a debug keys, using each SHA-1's respectively.
I'm using Firebase Authentication. My SHA-1 was indicated correctly, client id was also correct but I still was getting 12500.
It turned out that my problem was that I didn't indicate Support email in my project settings. (Settings -> General tab -> Your project (Public settings) section).
I experienced the same problem after opening my project on another computer (different Android Studio). In my case, I solved it using the Firebase Assistant, which I had used to setup Firebase initially. Opened the Firebase Assistant (Tools > Firebase) and selecting Authentication > Connect. This reconnected the project to Firebase and updated the configs
The error appeared to me when the Google option was not enabled, as shown in image.
It happened when I changed Google's account and forgot to turn on the option of connecting with Google.
I was stuck of this for a while.
Make sure these step are performed-