google-signin-unity icon indicating copy to clipboard operation
google-signin-unity copied to clipboard

Force account pick

Open luk-ryn opened this issue 3 years ago • 7 comments

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 ?

luk-ryn avatar May 11 '21 11:05 luk-ryn

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

lakshjn avatar Jul 14 '21 17:07 lakshjn

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

lakshjn avatar Jul 26 '21 19:07 lakshjn

@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.

aryanasp avatar Oct 20 '21 16:10 aryanasp

@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.

lakshjn avatar Oct 20 '21 16:10 lakshjn

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();

Mol0ko avatar Jun 17 '22 10:06 Mol0ko

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

Won-gyu avatar Feb 10 '23 07:02 Won-gyu

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.

DyLoGames avatar Feb 04 '24 20:02 DyLoGames