GithubHelp home page GithubHelp logo

Comments (6)

s4relok avatar s4relok commented on August 21, 2024 2

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.

amsyary avatar amsyary commented on August 21, 2024 2

I got the same error because I forgot to add SH1 fingerprint to my app in firebase.

from google-signin-unity.

wesley-crick avatar wesley-crick commented on August 21, 2024

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.

Epiczzor avatar Epiczzor commented on August 21, 2024

Resolved the Issue, had unnecessary spaces in the web client id i provided on the canvas.

from google-signin-unity.

reddy36996 avatar reddy36996 commented on August 21, 2024

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.

codemaker2015 avatar codemaker2015 commented on August 21, 2024

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:

from google-signin-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.