【问题标题】:Google+ Sign out with Android API not removing default accounts使用 Android API 退出 Google+ 未删除默认帐户
【发布时间】:2016-07-13 04:35:51
【问题描述】:

我可以完美登录。我也可以退出。

但是当我再次开始登录时,它不会要求我选择帐户并自动使用我登录的同一用户登录。

 private void signOutFromGplus() {
    if (mGoogleApiClient.isConnected()) {

        mGoogleApiClient.disconnect();
        Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
        mGoogleApiClient.connect();

    }
}

I also tried with revoke access. But did not work for me.

【问题讨论】:

  • 确保您添加了多个用户。
  • @jaydroider 我第一次登录时获得了帐户选择器,但第二次没有。

标签: android google-plus googlesigninaccount


【解决方案1】:

您可以使用AccountPicker 作为参考。访问 AccountPicker

【讨论】:

  • 我第一次登录时获得了帐户选择器,但第二次没有。所以我不认为这是这个问题的解决方案。
猜你喜欢
  • 2018-05-22
  • 1970-01-01
  • 2019-01-04
  • 1970-01-01
  • 1970-01-01
  • 2017-08-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多