Second [[GIDSignIn sharedInstance] signIn] isn't prompting the user

纵然是瞬间 提交于 2019-12-11 01:28:48

问题


Many people have more than one Google account. I'd like to support multiple Google accounts in my app. I'm having trouble getting a prompt for the user to sign in with a second account.

The user can sign in to one account just fine. Calling sign in the first time results in a call to the delegate with all of the expected values.

When I call signIn again, my app doesn't switch to the Google sign in UI but instead the delegate is called immediately. The values returned to the delegate are for the first account. In that sense, it's working like signInSilently.

I'm using the iOS Google Sign In SDK version 2.1.0. I'm using the iOS simulator.

Does the sign in sdk support more than one account? And if so, how?

My preferred behavior would be for signIn to always prompt the user to sign in.


回答1:


Calling signOut before calling signIn will bring up the prompt window again. The token (or at least the refresh token) seems to still be active after signing out so access to all accounts is still possible.



来源:https://stackoverflow.com/questions/31108351/second-gidsignin-sharedinstance-signin-isnt-prompting-the-user

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!