Comments (6)
Worked only few times, then again 'Google.GoogleSignIn+SignInException' was thrown
UPDATE: Resolved
I changed webClientId in code, but Unity Editor saved "your client id here" string.
from google-signin-unity.
I got the same error because I forgot to add SH1 fingerprint to my app in firebase.
from google-signin-unity.
I think I am getting a similar problem. I setup the sample and created a project in firebase. I have not included firebase yet. I made a change to the sample to give some better logging from adb.
When I click the Sign In button
C:\android_sdk\platform-tools>adb logcat -s SignInFragment
--------- beginning of main
--------- beginning of system
01-15 23:20:19.416 21588 21633 D SignInFragment: TokenFragment.configure called
01-15 23:20:19.416 21588 21633 D SignInFragment: AuthHelperFragment.authenticate called!
01-15 23:20:19.416 21588 21633 D SignInFragment: Using DEFAULT_SIGN_IN
01-15 23:20:19.423 21588 21633 D SignInFragment: Requesting IDToken client: 000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
01-15 23:20:19.442 21588 21633 D SignInFragment: Has connected == false
01-15 23:20:19.495 21588 21633 D SignInFragment: Done with processRequest!
Then when I click on my Google Account
01-15 23:20:25.670 21588 21588 D SignInFragment: onActivityResult: 9009 0
01-15 23:20:25.677 21588 21588 D SignInFragment: Calling nativeOnResult: handle: 3136813640, status: 10 acct: null
01-15 23:20:25.678 21588 21588 D SignInFragment: onResume called
01-15 23:20:25.678 21588 21588 D SignInFragment: State is now ready
In the Status text, from the app, it says:
Got Error: DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown
I also tried the update @s4relok mentioned, to update the webClientId
in the SignInSample
Class, no luck. I am better with native Android, than Unity, so I may try an Android approach to confirm my credentials are correct. Suggestions? Thanks!
from google-signin-unity.
Resolved the Issue, had unnecessary spaces in the web client id i provided on the canvas.
from google-signin-unity.
I have only used this plugin with sample package. I've setup firebase account too. I tried building the apk without firebase and provided web client id as well. Now when i try to sign in, i get following error in status text:
Got Error: DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown
Pls note that it worked twice just by selecting resolving client jars from menu. After that it again stopped working after making few changes, since then i'm not able to make it work.
from google-signin-unity.
This might be because of wrong SHA1 key or release.keystore file.
Follow the below steps to resolve the issue.
- Open Publishing settings in Player settings and click on Keystore manager to generate a release keystore.
- Go to the folder where the keystore is located and open a terminal.
- Run the keytool utility provided with Java to get the SHA-1 fingerprint of the certificate. You should get both the release and debug certificate fingerprints.
- To get the release certificate fingerprint:
keytool -list -v -alias <your-key-name> -keystore <path-to-production-keystore>
- To use google auth, you need to provide some additional information to finish setting up your project. Create a project in the Google console and specify your package name (Eg: com.google.samples.quickstart.signin) when prompted. You will also need to provide the SHA-1 hash of your signing certificate.
https://developers.google.com/identity/sign-in/android/start
Demo project repository link: https://github.com/codemaker2015/google-signin-unity3d-demo
For more:
- https://developers.google.com/android/guides/client-auth
- https://github.com/googlesamples/google-signin-unity
from google-signin-unity.
Related Issues (20)
- Build google signin support for x86 and x86_64 REQUEST HOT 2
- GoogleSignIn.DefaultInstance causes a crash HOT 1
- Multiple precompiled assemblies with the same name Google.VersionHandler.dll
- Exception of type 'Google.GoogleSignIn+SignInException' was thrown. HOT 3
- Crash when Google sign-in call in unity
- 2022.3.10f1 import error HOT 4
- [QUESTION] How to force account choose HOT 1
- You HOT 1
- Pop-up not displaying
- not displaying
- Why is this plugin not updated or archived?? HOT 1
- When Sign-in flow cancelled, I cannot sign-in again.
- Does it work on huawei appgallery and IOS?
- I just installed this package. but I met error of lot. HOT 2
- The sample project is stuck on "Calling Signing In" HOT 3
- iOS Privacy Manifest Please respond HOT 3
- Login doesnt work in dev build, but works after uploading to internal testing HOT 1
- When i build, Link error occurs with Firebase Unity SDK 11.9.0 & google-signin-unity 1.0.4 HOT 1
- DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' was thrown. HOT 5
- unity build error occurred: Execution failed for task ':launcher:mergeDexRelease'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-signin-unity.