-
Notifications
You must be signed in to change notification settings - Fork 259
DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown. #51
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
Comments
OK, I tried to solve this problem all day and finally solved it. The above question was not wrong. The 'Google Sign-In configuration file' section in README.md is probably a file obtained through firebase. It looks different, but it is not wrong. https://developers.google.com/identity/sign-in/android/start Next, when you click the GOOGLE API CONSOLE button in the above link, there will be two kinds of OAUTH 2.0 CLIENT IDs in the project. Finally, browse keystore in Publishing Settings and build with release. (You should never do Developer Build, I spent a lot of time here.) I hope this will help you . |
thanks! helped to clear up stuff for me |
Thank you!, you saved the day! This was a very tricky situation. |
Agree with Toom, if you need an official guideline, please check here
|
Still getting this issue. I've cross-checked all of the above. Any other suggestion? I'm using: a. Unity 2018.1.5f1 b. firebase_unity_sdk_6.2.0 c. google-signin-plugin-1.0.4 Steps:
|
@Ryu17 Thank you, that information was helpful! I wish that was in the ReadMe @bipinGosain I'm not 100% certain, but it seems that using a Also, it if you can check if that SignInException has Status=Error vs DeveloperError, that may help figure out what is wrong. |
I had this problem recently, hope this note helps someone!
and remember to do a release build not debug(just in case)
except json file,you can access that id by this way: |
I was getting this error on Android (not iOS) and I just solved it after spending a couple of days on it.
|
How did you get the Release keystore? Is this a separate command from the debug keystore? The command I used for the debug.keystore was "keytool -list -v -keystore C:\Users\username.android\debug.keystore -alias androiddebugkey -storepass android -keypass android". Or am I misunderstanding and you have to release the app on the play store in order to acquire that keystore? |
It is strange for me, if I export apk, everything works Okay. On the other hand, if I create the .aab version and upload it to GooglePlay, I have this error. What could I do wrong? |
Hi, It's happening the same to me. I have the setup as follows: I got It working on iOS (adding the GoogleServices-Info.plist and adding the client id to URL schemes) but It doesn't seem to work in Android. I keep having the same error: Any suggestion on what I might be missing ? |
you save my life and time bro...thank you |
For anyone gets here after 2021, if you are signing your app with Play App Signing, you should also add SHA-1/SHA-256 generated by GP: to your firebase console: |
Took me days. Now it's working! |
It's work for me, My situation is: Just follow above steps, no need re building, then succeeded! Thank you!! |
I am not making use of firebase and i still encounter the same error in my untiy build. Local build apk works fine |
Hi there!
I was following the guide and found something different.
"This file contains the client-side information needed to use Google Sign-in. The details on how to do this are documented on the Developer website."
I entered SHA1 and the package and created a json file by clicking 'Configure a Project' through the developer website link, but the file looks different from the guide.
Is it wrong to choose Android from the image above?
My json file looks like this:
{"installed":{"client_id":"529939461761-1809034pngb3o70tgnlupamab0e1l8vs.apps.googleusercontent.com","project_id":"myproject-492d7","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
The text was updated successfully, but these errors were encountered: