Issue
I'm quite new to all that technologies, but trying to develop an android app with Ionic 6 and Angular 9, compiling with Cordova and publishing in Google Play. Evereything works fine except that I can't solve the ERROR 10 that I get when I try to login with google. The app in Google Play: Chefpapers.
I browsed similar questions, allways say its about SHA1 not registered, or package name, I checked that things, but never find the solution.
My code:
this.googlePlus.login({}).then(... doing something ...)
.catch(err => this.errorMessage = "Error " + JSON.stringify(err));
Things I did:
- Setup a Firebase project as per doc.
- Set the SHA1 in the Android key for the key I used to sign the APK in release, as per doc.
- I also checked with webId parameter in the login function, same result.
- Set the package name in the config.xml and the firebase app are exactly the same. I also tried to remove the project and create a new one.
- Checked the credentials in the API services console.
It works well with broswer, but not in Android. Thanks for help! Quimi
Solution
Finally after 10 days of doing a lot of tests I solved it, and it's a solution I didn't found in any other post:
- In google play console, I was using my own certificate to sign the app.
- I asked google to change the certificate and let google sign with it's own created file.
- So I just need to sign the APK before uploading with my certificate which is the one used for loading now, and then Google sign the app when somebody is using with another key.
- I pasted the new public key of that google certificate in the Credentials API service and voilĂ !
Answered By - Quimi Font
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.