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
In my case, it's because of the wrong Google Client Id.
I change my key to the key listed in google-services.json (under oauth_client object)
Support email and also all project and privacy links are necessary for Google SignIn to work, otherwise it throws 12500.
Set it on https://console.developers.google.com/apis/credentials on the bottom of second tab named "OAuth consent screen" - there you'll find three links that need to be configured.
This is not mentioned ANYWHERE in the Firebase guides.
Go to your project in the Firebase console, open Project Settings, add your SHA certificate fingerprints there. Download the updated google-services.json file and add it to your Projects app folder.
This worked for me.
When your app authenticates with a backend server or accesses Google APIs from your backend server, then you must pass the OAuth 2.0 client ID that was created for your server to the requestIdToken method when you construct the GoogleSignInOptions object, for accessing the user's basic profile information. Also, don't forget to submit the support email in the OAuth consent screen found in the Credentials page in the API Console.
It can also happen that the cordova compiler is unable to find the proper keystore file.
Solution: Before executing ionic cordova build android specify the signing properties
Step-1: Generate a debug keystore file
Execute the command
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
Use password: android
Step-2: Copy the keystore file(debug.keystore) from ~/.android to platform/android directory of your current project
Step-3: Create a file named release-signing.properties in the platform/android directory
Step-4: Add the contents in the file
storeFile=debug.keystore
keyAlias=androiddebugkey
storePassword=android
keyPassword=android
Note: These are the default values. If you have provided custom alias and password then use them accordingly.
Step-5: Now build ionic cordova build android
I was stuck of this for a while.
Make sure these step are performed-
Correct SHA key is saved on Firebase Console.
Valid reversed client id.
from fcm console=>select app=>from authentication=>enable google sign-in method