Sign In Never Ends
Problem After signing into Unity the code that is meant to be called when sign in finishes just... isn't.
Reproduction Using the sample scene:
- build to Android device
- on device click "Sign In" button
- status text added: "Calling SignIn"
- popups appear allowing signing into Google
- select a Google account
- passwords are saved to device so sign in skips asking for password
- Google popups close
- Unity resumes
- nothing happens: no new status text appears saying "Got Error:..." or "Cancelled" or "Welcome: {my display name}" just nothing (i.e. SignInSampelScript.OnAuthenticationFinished is never called). The last status text remains "Calling SignIn" with no new updates.
- making a new scene and custom code has exact same result - the code that's meant to be called to handle the result of signing in just isn't ever called, continually left waiting for Google to finish signing in, even though it already has finished.
Environment Unity: 2018.4.23f1 on Windows 10 Device: OPPO Reno Z Android Version: 10
Hi my friend. Sorry but i don't have answer for this issue. I have the same problem in this days. If i'll find solution i write something right there. Please if you find solution share the method
i have same problem , i could accidentally get it work with old client id but however that did not show welcome. with correct client id it just show calling sign in
when debugging , it tries to show "Exception of type 'Google.GoogleSignIn+SignInException' was thrown." , and isTransient off error is "Exception of type 'System.MissingMethodException' was thrown" looks like for its for old code with newer libraries. any one have a solution
The problem is inside one function, sorry i'm out of my house and i can't find link of this issue but i have the solution Write me: [email protected]
Il Dom 20 Set 2020, 10:52 Mohammad Nobakht [email protected] ha scritto:
i have same problem , i could accidentally get it work with old client id but however that did not show welcome. with correct client id it just show calling sign in
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/googlesamples/google-signin-unity/issues/154#issuecomment-695762433, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLRT4P6MJERJR4CZFSRGODSGW7GLANCNFSM4QRORAQA .
do you guys look for prints in the unity editor console? because the prints on a real device will show in android studio logcat. at first i looked for them in the unity editor and nothing showed up but then i looked in android studio and they show up properly.
I as well have this issue. I've not been able to find a solution to this. I'm assuming this project is abandoned and I will need to find another way to implement Google Sign In (not play store)?
The problem is inside one function, sorry i'm out of my house and i can't find link of this issue but i have the solution
Would you mind sharing the resolution here?
I might have found the solution to your problem: In my case, the code wasn't called because the sign in happened on another thread, but my code expected to be called on the main thread. This was necessary, because it ran a Coroutine afterwards.
I was able to fix this by replacing this line:
GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnAuthenticationFinished);
with
GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnAuthenticationFinished, TaskScheduler.FromCurrentSynchronizationContext());
...and BAM, everything worked as expected.
The problem is inside one function, sorry i'm out of my house and i can't find link of this issue but i have the solution Write me: [email protected] Il Dom 20 Set 2020, 10:52 Mohammad Nobakht [email protected] ha scritto: … i have same problem , i could accidentally get it work with old client id but however that did not show welcome. with correct client id it just show calling sign in — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#154 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLRT4P6MJERJR4CZFSRGODSGW7GLANCNFSM4QRORAQA .
Was @derwaldgeist 's fix correct?
The problem is inside one function, sorry i'm out of my house and i can't find link of this issue but i have the solution Write me: [email protected] Il Dom 20 Set 2020, 10:52 Mohammad Nobakht [email protected] ha scritto: … i have same problem , i could accidentally get it work with old client id but however that did not show welcome. with correct client id it just show calling sign in — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#154 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLRT4P6MJERJR4CZFSRGODSGW7GLANCNFSM4QRORAQA .
Was @derwaldgeist 's fix correct?
I have this same issue (MissingMethodException) and I am tearing my hair out trying to fix it, the above fix did not work for me. Does anyone have any other ideas?