ios - 在注销/登录时,Google plus iOS sdk 请求已授予用户的权限

标签 ios google-plus

我在我的应用程序中使用 google plus iOS sdk 登录。当我从 g+ 注销并尝试再次登录时,它会显示许可屏幕(在 G+ 应用程序和浏览器中)。我不能使用 trysilentauthentication,因为我的应用程序也支持通过 facebook 登录。如何配置我的应用仅请求一次?

最佳答案

trySilentAuthentication 是那里的正确答案。如果您担心不让用户选择将 Facebook 添加到他们在您的应用程序上现有的 Google 登录,请使用 trySilentAuthentication 的结果设置一个标志,如果该标志为 Yes,则不要立即处理对finishedWithAuth:error - 仅在按下按钮时执行此操作。

关于ios - 在注销/登录时,Google plus iOS sdk 请求已授予用户的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21761362/

相关文章:

android - 人脸识别Android/iOS

ios - UILabel向下滑动发送错误信息

ios - 如何在 Objective-C 中编写完成 block ?

android - 如何检查用户是否已登录 Google+?

angularjs - 在 Chrome 应用程序 (CCA) 中使用 Google OAuth 时遇到问题

ios - 有没有办法从 Google 登录页面中删除用户?

ios - 在 Swift 中带有事件的 SpriteKit 按钮

android - fragment 描述未显示在 Google Plus 帖子中 (Android)

ios - 将 Google AppInvites 集成到 iOS 应用程序

python - 在我的 Glassware 中使用其他 Google API(共享到 g+ 帐户)