-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error Something went wrong, code: 10 #291
Comments
I'm facing same issue. |
This error is the same as error #87. This error code indicates an issue caused by the developer. |
i have the same problem, i really try so many things, can help me ? my config.json :
strings.xml
i don't know if i need a other cliendID, i see some peoples say for use the web_client_id and not the android_app_client_id, but don't work too :/. What i can do ? |
I have exactly the same issue. It seems that google deprecated a module that this repo built on and cannot work anymore. https://developers.google.com/identity/gsi/web/guides/migration |
in this case i think, dont have other manner to use in a hibryd app(capacitor with ionic) ? In this guide i only see java codes in gradle. Maybe exists some plugin ? like capacitors plugins or ionics components ? |
same issue here as well😔, @reslear |
Same issue. banging my head against the wall for the last few hours. Thought I was doing something wrong. |
i think we can use the basic method maybe ? instead of using a plugin we can using the firebase method open in browser of phone ? I try to use the browser for this but the browser can't back to the app after the authentication, someboy know something about this ? |
finally after 43 hrs continuous real struggle, me fixed it😃🥳👯🎈🎉🎊 |
How? You managed to make it work on android device too? Please share the solution, big headaches here too.. |
@stevegtdbz ya ya in understand pal, my issue was my sha1 key was different than that i added on firebase for google auth. |
Has anyone else got it working with the purposed solution? This GoogleAuth plugin should work independently if I'm not mistaken. How Firebase SHA1 is related to this. I tried with Firebase, provided SHA1, but still the same error. |
Thanks for the response. The old google api seems to work only for api keys that generated before of july 22. Check the warning message here For new keys, as far as i understand, it requires to implement gis. |
But my api keys are created a week agao🤔 and it's working. |
But yeah, the google is upgarding it's policy and auth process , so @reslear , we need to also upgrade with it in near future! Who knows when it completly stops working!! |
@OnlinePage can you send an example of code ? i tried all this things and dont work for me :/. I will try to see the keys again, but I already add my SHA1 in app, which key i need put in |
@OnlinePage please answer #202 (comment) |
Make it work on my side by using serverClientId with "client_type": 3 client_id ( the web one, not native one WTF) |
After many days of searching & troubleshooting, it finally worked for me too! In my case, firebase is no needed.. i am just getting the "id_token" and sending it to my backend.. then i verify the token and grand access to my user.. so here is what followed: 1) Google console setup
Create an android application (i know make no sense)
2) capacitor.config.ts
3) Angular component
** On android project have only registered the plugin, nothing else registerPlugin(com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth.class); @OnlinePage You had right! I also used a new key and worked fine! but i also found another one from an old project in case google decides to shut down the new ones (as per their warnings) :p |
Glad it worked !! 🥳. Ahhh... Google and it's policies😔 |
i guess @stevegtdbz answer is guide for you |
ERROR Error: Uncaught (in promise): Error: Something went wrong I tried everything still nothing is happening plz help me:) |
I solved it by using the SHA1 from the Android Studio Terminal when running this command "./gradlew signingReport" |
For me, the problem solved by using all 3:
.... |
Work for me thanks! in my case I see I put the IOS client id on the serverClientId lol |
Glad 😊 you got it worked!! Ahhhh! this Google playing with us developers 😢. |
Thankyou Bro |
|
I had this problem and followed all steps from @stevegtdbz but did not work until i specified a difrent port on the front end rather than http://localhost, i changed it for http://localhost:8100 and worked! |
Signing the apk with the wrong fingerprint (keystore) resolved the issue for me. |
Maybe someone can add a PR faq section to the README with this problem? |
i solve this error using the following steps:
your component.ts code: plateform: any; initialize() { //call this ftn in html
capacitor.conflt.ts plugins: { MainActivity.Java (import all packages) @OverRide string.xml index.html past google-services file download form firebase in android/app directory REMEMBER ME IN YOUR PRAYERS |
I was stuck on this issue for a couple of days but managed to fix it with the help of this tutorial: https://www.youtube.com/watch?v=GwtpoWZ_78E&ab_channel=SimonGrimm Essentially it looks like the issue is somehow at Google's end. You need to have both Android and Web credentials set up but will use the Web credentials in your app. There's not really any reason for the issue but it would appear it needs the SHA1 information for the Web to work... bizarre situation I know! Hope it helps. |
Only for God this thing might work. |
in my case, because i still in development, i need to use variant: DEBUG for SHA-1, and set it in android native OAuth 2.0 Client ID i'm check it with: |
Actually, i am also totally confused about google signing in ionic app but, i got to know solution by several tries , i finally discovered that the debug keystore SHA1 only works in the emulator |
Actually, i am also totally confused about google signing in ionic app but, i got to know solution by several tries, i finally discovered that the debug keystore SHA1 only works in the emulator |
Actually, i am also totally confused about google signing in ionic app but, i got to know solution by several tries , i finally discovered that the debug keystore SHA1 only works in the emulator |
|
|
|
In my case, after having applied all suggestions collected here and in other related issue, the sign-in on android started to work when I used the web client id instead of android client id. I can live with that, but... can anyone explain me why??? |
I cant found my issue. Please help me {message: 'Something went wrong', code: '10'} |
I'm trying to use this package for google sign in. I'm always getting this error
I tried to follow the documentation as is, here is my configurations:
capacitor.config.json
strings.xml
MainActivity
and then within my vue application using as
I created my client_id from the google cloud console and copied my SHA1 to the google cloud console but still always getting this error.
capacitor: ^5.1.0
@codetrix-studio/capacitor-google-auth: ^3.3.2
The text was updated successfully, but these errors were encountered: