I integrated Google Oauth Sign In in my Ionic Capacitor App but I have an issue for Android Device only:
When the user clicks on the Google login button from the app, a popup appears to select the gmail account. Immediately afterwards the system goes into error and in the log I find this error:
{
"save": false,
"callbackId": "21517523",
"pluginId": "GoogleAuth",
"methodName": "signIn",
"success": false,
"error": {
"message": "Something went wrong",
"code": "10"
}
}
I’ve read several posts and tried different solutions but I can’t resolve the problem. I followed the following steps
-
I deleted all fingerprints from Firebase Console for Android application
-
I have deleted all references from Google Cloud Console Oauth 2.0 Client IDs for the Android application
-
Generated SHA certificate fingerprint using windows shell command
keytool -keystore my-jks-file-path -list -v
Certificate fingerprints:
SHA1: 56:5D:38:F2:D0:XX:XX:XX:XX:XX:D7:FB:56:7A:A2:D4:B5:1B:D0:C5
-
Add SHA certificate fingerprint from Firebase Console (Android Apps)
-
Google creae automatically reference into Google Cloud Console Oauth 2.0 Client IDs (Android client for (auto created by Google Service))
-
Downloaded google-services.json file-path
-
Copied google-services.json file into my ionic app into .\android\app\google-services.json
-
Rebuild App using keystore (the same used for generate SHA certificate fingerprints )
-
Installed on my android device
Please help me.
Thanks