googlesamples / google-signin-unity

Google Sign-In API plugin for Unity game engine. Works with Android and iOS.
Other
424 stars 231 forks source link

Force account pick #182

Open luk-ryn opened 3 years ago

luk-ryn commented 3 years ago

While I sign in and log out I can't see anymore possibility to pick account. Is it possible to force account selection each time ?

lakshjn commented 3 years ago

I am also facing this issue for android only any solution to this ?

lakshjn commented 3 years ago

@luk-ryn one solution I found is to signout first and then sign in for android platforms

aryanasp commented 3 years ago

@lakshjn can you show that part of code? I have this problem too and i tried so much event sign out, I wnat to know how you call sign out method in your code.

lakshjn commented 3 years ago

@aryanasp Hi, I dont have that codebase with me but what I did was if user is logged in I maintain a flag and if user wants to login again I call coroutine which logout current user then wait for callback or some seconds(dont remember) then call sign in again.

Mol0ko commented 2 years ago

For me issue was solved when I added GoogleSignIn.DefaultInstance.SignOut(); call for the same instance right after signIn. Hope this helps someone:

     var signInUser = await GoogleSignIn.DefaultInstance.SignIn();
     GoogleSignIn.DefaultInstance.SignOut();
Won-gyu commented 1 year ago

For me issue was solved when I added GoogleSignIn.DefaultInstance.SignOut(); call for the same instance right after signIn. Hope this helps someone:

     var signInUser = await GoogleSignIn.DefaultInstance.SignIn();
     GoogleSignIn.DefaultInstance.SignOut();

Thanks! It works perfectly

DyLoGames commented 9 months ago

For me issue was solved when I added GoogleSignIn.DefaultInstance.SignOut(); call for the same instance right after signIn. Hope this helps someone:

     var signInUser = await GoogleSignIn.DefaultInstance.SignIn();
     GoogleSignIn.DefaultInstance.SignOut();

Great! IT WORKS! Thanks.