android - Firebase 身份验证 : Google sign in pop up window doesn't show up again once after I sign in with an acccount

标签 android firebase-authentication google-signin

我不知道这个问题是否与 Firebase 或编程有关,但我正在进行移动开发,我正在测试谷歌身份验证是否适用于 Android Studio 上的模拟器。 Google 身份验证有效,但问题是在我使用帐户登录并自动使用帐户登录后,登录弹出窗口不会显示一次。因此,当我在登录和注销后尝试使用另一个帐户登录时,它不会出现。这是正常行为吗?如何在登录时始终选择一个帐户?

最佳答案

看起来框架缓存了您第一次从弹出窗口中选择的选项。 要再次显示弹出窗口,您需要从 Google 登录客户端撤消访问权限:

mGoogleSignInClient.revokeAccess();

详情请看这里: Firebase: How to revoke access to a Google account that is not logged in

关于android - Firebase 身份验证 : Google sign in pop up window doesn't show up again once after I sign in with an acccount,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60680062/

相关文章:

Android - 循环随机数组并且不重复

android - CoordinatorLayout 不隐藏操作栏

firebase - 无法在 firebase 云函数中创建自定义 token ,因为服务帐户没有必要的权限

android - Android 无效 ID token 的 Google 登录

android - 为什么我的程序返回 google sign in 12500 错误?

android - 从 GeoJsonSource 获取所有特征

android - Seekbar 未设置 .getLayoutParams().height

java - Firebase 身份验证 verifyPhoneNumber 返回空引用

Android Firebase Google 身份验证仅在从单台计算机运行时有效

javascript - 验证 google id token 并使用来自 node.js 回调的数据