其他分享
首页 > 其他分享> > android – 每次使用GoogleSignInApi显示帐户选择器

android – 每次使用GoogleSignInApi显示帐户选择器

作者:互联网

我正在使用播放服务8.3中引入的新GoogleSignInApi.它会记住上次选择的帐户,并且不会从第2次开始显示帐户选择器.但我想让它每次都让用户选择帐户.看起来GoogleApiClient的clearDefaultAccountAndountRend()方法不允许与googleSignInApi一起使用.没有实现自定义帐户选择器,有没有办法实现这一目标?我在播放服务8.3和谷歌服务1.5.0.

解决方法:

帐户选择已缓存,因此您必须先调用signOut.

标签:android,google-play-services,google-signin
来源: https://codeday.me/bug/20191001/1838859.html