ios - iOS 中的社交注销 Google Plus 问题
<p><p>从谷歌注销加上我使用了 <strong>disconnect</strong> 方法,但之后登录应用程序直接进入权限页面。不要求登录。为什么?</p>
<pre><code>here is my Sign In function
-(google*) MethodgoogleLogin
{
[ removeObserver:self name:@"gotGoogleErrorAppClosed" object:nil];
[ addObserver:self selector:@selector(gotGoogleErrorAppClosed:) name:@"gotGoogleErrorAppClosed" object:nil];
obj_google = [init];
personName=[init];
// google + code
signIn = ;
signIn.shouldFetchGooglePlusUser = YES;
signIn.shouldFetchGoogleUserID = YES;
signIn.shouldFetchGoogleUserEmail = YES;
signIn.clientID = @"384945330563-pcls0t8c28s1jf7qiod9555sg7edfqhj.apps.googleusercontent.com";
signIn.scopes = @[ kGTLAuthScopePlusLogin ];
signIn.delegate = obj_google;
;
return obj_google;
}
</code></pre>
<p>这是我的退出功能</p>
<pre><code>-(void)signOut
{
;
;
}
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您可以使用 GPPSignIn 对象的 signOut 方法来注销您的用户,例如:</p>
<pre><code> - (void)signOut {
[ signOut];
}
</code></pre>
<p>然后撤销 token 并断开应用程序。<br/>
欲了解更多信息,请访问:- <a href="https://developers.google.com/+/mobile/ios/sign-in#sign_out_the_user" rel="noreferrer noopener nofollow">https://developers.google.com/+/mobile/ios/sign-in#sign_out_the_user</a> </p></p>
<p style="font-size: 20px;">关于ios - iOS 中的社交注销 Google Plus 问题,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/25906075/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/25906075/
</a>
</p>
页:
[1]