Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

show account chooser every time with GoogleSignInApi

I am using the new GoogleSignInApi that was introduced in play services 8.3. It remembers the last selected account and doesn't show account picker from 2nd time onwards. But I want it to let user choose account every time. Looks like the clearDefaultAccountAndReconnect() method of GoogleApiClient is not allowed to be used with googleSignInApi. Is there any way to achieve this without implementing a custom account chooser? I am on play services 8.3 and google services 1.5.0.

like image 586
gitter Avatar asked Mar 03 '16 21:03

gitter


1 Answers

The account selection is cached, so you have to call signOut first.

like image 166
Steven Avatar answered Sep 19 '22 13:09

Steven