-
Notifications
You must be signed in to change notification settings - Fork 259
Got Error: DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown. #49
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
Creating the OAuth client under the Google Play Console has solved the problem for my group as well, therefor I would assume that's the problem most other developers have when seeing the SigninException and not a problem with the package. Huge thanks @ChiefBreakeverything. |
@ChiefBreakeverything Perhaps you should close the issue if you found a solution? Although this solution doesn't make sense. The API Access section of Google Play is for setting up software that can edit and publish apps on Google Play using your Google Play Developer Account. |
After days of losing efforts making it work, I just had to update the OAuth Consent screen (From Google Developers Console), After updating the info on that screen, the exception has gone, and the sign in worked well I've not read this information anywhere else |
Well finally solved it after 2 days of struggle! Solution: Do make sure in the "OAuth consent screen" in google api console you've added name of your application properly. |
@karam89 yup, exactly, one has to make any change in that section, so as to make it possible to save new settings of 'OAuth Consent screen'. Rly strange, but works! |
@ChiefBreakeverything Thanks for this post---I inferred from your post that During the process, I did add the Google Play Console Oauth client, but I removed it add things are still working--as @kevinfoley mentioned, it's unclear why that would be needed as it's function seems unrelated. |
SOLVED !!! This also makes me think if Google SignIn is a good tool since its not very foolproof on Wifi-less environments like public transportation and outdoors. |
It's happening the same to me and I'm not using Firebase. I have the setup as follows: But I keep getting the same error: Any suggestion on what I might be missing ? |
I've run into this error while using the example scene as directed in the ReadMe. Unlike outcomes other users have reported before, I'm 99% certain the issue isn't related to the spelling of the webClientID string (process thus far detailed below) so I was wondering what else it could possibly be.
Here's a list of the things I've triple-checked:
I managed to log each of the GoogleSignInStatusCode enum flag states returned with the GoogleSignIn.SignInException task and the results look like this:
According to the parameter summarys and remarks in GoogleSignInConfiguration.cs:
I'm not too sure what to make of these results (succeeded and cancelled are both true and it threw an error?). It appears I can specify an AccountName parameter for GoogleSignInConfiguration (null uses the 'default'), what format could that take?
Also, the remarks for DeveloperError mention more information being in the logs. I found the line:
Apparently this is a pretty common error and relates to some misconfiguration of the client ID settings. According to Mengcheng Duan back in 2014:
"Invalid audience means either your Android app is not registered in Google cloud console or it is registered in a different project other than the one where the server client_id lives.
The 403 is caused by the browser API key referer restrictions. Currently the workaround is to create a new browser/android API key without referer/package restrictions."
I've tried creating new client IDs several times with different settings and to no avail. Any help would be greatly appreciated in the mean time if the answer is clear! :)
Edit: After a lot of trial and error, the problem has been solved and it seemed to be something no one has pointed to yet. The action that switched it from not working to working was signing up as a Play developer (registration fee included) to gain access to the Google Play Console, and then seemingly creating an OAuth client under 'API Access' (its a big button, can't miss it). It makes sense I suppose, but it's strange that it hasn't been mentioned anywhere else in the documentation. Hopefully this report can act as a guide if anyone else ends up in a similar position.
The text was updated successfully, but these errors were encountered: