Skip to content

Got Error: DeveloperError Exception of type 'Google.GoogleSignIn+SignInException' #33

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

Open
reddy36996 opened this issue Mar 4, 2018 · 15 comments

Comments

@reddy36996
Copy link

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.

@baldodavi
Copy link

baldodavi commented Mar 26, 2018

You need to specify webClientId in SigninSimpleScript.cs :)

@soDiaoune
Copy link

soDiaoune commented Mar 27, 2018

@baldodavi I have setup the webclientID in the script and in the editor , but I still get the same error

@soDiaoune
Copy link

Any idea on how to solve it ?

@baldodavi
Copy link

baldodavi commented Mar 27, 2018

I've a similar issue during creation of dummy project. I solved using a published and linked Play Game Service oauth2 key as WebClientId. After link the play services to an application you can find this oauth2 key under linked apps in Play Game Services console menu. Thanks for question :)

@mjmac87
Copy link

mjmac87 commented May 23, 2018

I struggled with this for a while until I came across the following:

keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%.android\debug.keystore

Don't get the SHA-1 from your unity project. You need the debug version instead which is tied to your computer+android.

@gitNermin
Copy link

@mjmac87 how can i get the debug version?

@gitNermin
Copy link

never mind I found It and It's working now .. thank you

@vanilla-plus
Copy link

vanilla-plus commented Jun 27, 2018

I've run into the same error, but I'm 99% certain the issue isn't related to the spelling of the webClientID string (its copied straight from the google-services credentials json file, which itself is fresh from the credentials dashboard)

Does anything else in particular cause this error?

@guijebra
Copy link

guijebra commented Dec 6, 2018

@ChiefBreakeverything I've the same error and I haven't been able to solve it yet. I tried copying the client-web key from the Google API Console in the project script but it didn't work. The SHA-1 has been taken as it is expressed in the OAuth Client site (Google API Console) and also used in the Player Settings of the Unity project but it has not worked. Any other possible solution?

@korober
Copy link

korober commented Jan 24, 2019

Maybe it helps somebody. Just use correct Client ID:
ClientId's type shouldn't be 'Android', but "Web Application", named Web client (Auto-created for Google Sign-in) (or something like this) , see screenshot.
h1

@michaelmpid
Copy link

If anyone using App Signing from Google Play Console, there are 2 SHA-1 fingerprints. One is used when uploading to Google Playstore and the other is for our own private keystore. After adding both SHA-1 to Firebase project settings and redownload the google-services.json, I do not get any Developer Error. Hope it helps

@wowzhoe
Copy link

wowzhoe commented Jul 19, 2019

Same error for me.
Working with published game bundle id, and did not work with the others bundle ids;

@SeeMyGame
Copy link


  • COMMENT : I SOLVE Stefan D3iT 22 MARCH 2021

Hi guys,

I have this mistake too, and I finally SOLVE Oh yes BB

My config
Unity 2019.4.16f1 + Win10 + Android Platform

I want to connect Unity + Google + Firebase for Login/Sign In

I install FirebaseAuth.unitypackage .NET4 (google Firebase SDK oh yes 1.8Gig for all)
I install Google-signin-plugin-1.0.4.unitypackage (package in github)
I install GoogleSignIn-sample.unitypackage (package in github)

My recommendation install inside this order
-Google-signin-plugin-1.0.4.unitypackage
-GoogleSignIn-sample.unitypackage
-FirebaseAuth.unitypackage <------(last version of files)

If you do not install in this order
Delete folder
Parse
PlayerServicesResolver
Plugins
and install again
-FirebaseAuth.unitypackage <--Last version

Inside unity Menu--> File/Build Setting/Player Setting/

Other Settings
Label
"Package Name" I put the same package in Firebase = com.compagnyname.myproject
"Scripting Backend" I change for = IL2CPP
"Api Compatibility Level" I change for = .NET4.x
"C++ Compiler Configuration" Change for = Release

Publishing Settings
I make a new Keystore with "Keystore Manager" Button

I found my keytool.exe in
i:\unity\2019.4.22f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin

I open cmd (command Prompt)

and tap this
i:
cd i:\unity\2019.4.22f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin

inside this folder, I tap this command

                       (Your Alias you put on your xxx.keystore)   (Path +file eg. xxx.keystore)

keytool --list -v -alias tutorial_firebase_login -keystore "C:/unity_projects/Dropbox/unity_keystore/tutorial_unity.keystore"

if is fine keytool ask you password you put inside xxx.Keystore file

is generated for me something like that I just cut in paste this into notepad for ease to use for injecting later inside the Firebase

SHA1: 62:E1:A0:75:53:03:C0:4D:23:4D:73:0C:5E:7A:62:DD:0C:DE:4A:23
SHA256: 35:F4:D7:0E:B4:1E:05:3D:90:BC:32:F1:3D:35:BC:06:66:32:62:3D:C2:54:22:3A:54:E6:BB:D4:71:F5:2F:D7

I also inside Unity MainScene/Canvas/Component/Script (SigninSampleScript)

I copy Web client Id Firebase give me
Field "Web Client Id" = 912005027992-aqc08l4ie7akvrcgcs33mhlebok555xt.apps.googleusercontent.com

After if you run on local win or mac I trust you still have this error

Exception: Field currentActivity or type signature not found.... but don't worry I work fine when you compile and send to your device.

But it works on your device, it works perfectly. Now you can log in with a google account.
But this demo does not create a login record inside Firebase you need extra code for that....

Ok now continue

First, I copy SHA256 thinking is more secure but it still gives me an error
I delete SHA256
and copy SHA1 still have the same error

********* Finally I copy both SHA1 and SHA256 inside Firebase

also, I copy the last file google-services.json inside my asset folder in unity, and at the same time, I delete the StreamingAssets folder always. Because Unity makes a copy inside this folder of this file.

Important
you need set in Firebase in section "Realtime Database" you need " do create" to generate URL
Firebase add this link inside the file "google-services.json"

Inside Firebase
-->Authentication
TAB Sign-In method
Enabled Google
On bottom
Expand Section "Web SDK configuration"

Copy in notepad for use later in unity your

***** Web client ID
912005027992-aqc08l4ie7akvrcgcs33mhlebok555xt.apps.googleusercontent.com

Also
Inside Firebase
Near "Project Overview" on the Left top corner Click the gear Icon
Choose Project Setting

You can see many important data include inside your google-services.json file
set your "Default GCP resource location"

If you create your app for Firebase already you can see under this area how to add your fingerprints SHA1-and SHA-256
add both

**** Don't forgot your "package name" need same unity

if you have some questions and you think I can help you let me know.
Maybe later I create some youtube to explaining some trouble and the way to fix it.

Sometimes integrate some packages can be a real nightmare.

@charles-mersereau
Copy link

Maybe it helps somebody. Just use correct Client ID:
ClientId's type shouldn't be 'Android', but "Web Application", named Web client (Auto-created for Google Sign-in) (or something like this) , see screenshot.
h1

saved my life

@BlissGDev
Copy link

I'm facing the same problem here but I'm not using Firebase foor authenticaton.

Just GoogleSignIn with GooglePlayGames and PlayFab.

I'm wondering if it's because of the SHA1 not correctly configured.
I configured the Upload Key SHA1 into the Android OAuth Client but still not working.

Any thoughts on what I could be missing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests