Google登出iOS [英] Google Sign Out iOS

查看:280
本文介绍了Google登出iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在新应用程序中实现社交登录(Google).为此,我点击了以下链接: https://developers.google.com/identity/sign-in/ios/start-integrating ,并且能够成功添加google登录信息和获取的用户基本信息.但是我陷入了退出流程.对于注销,我已经写了以下几行,但是仍然不会删除用户数据.当我尝试再次登录时,它会选择最后一个gmail ID.

I was trying to implement social login (Google) in my new application. For that I followed this link: https://developers.google.com/identity/sign-in/ios/start-integrating and successfully able to add google login and fetched user basic information. But I got stuck in Sign Out Process. For logout I've written following line, But still users data doesn't remove. As when I tried to login again it pick last gmail id.

[[GIDSignIn sharedInstance] signOut];

我试图找出解决方案.但是没有运气.如果有人对此有经验,请分享.还是Google登录和注销还有其他方法.

I tried to find out the solution for this. But no luck. If some one has experienced about this, please share. Or Is there any other way for google login and logout.

提前谢谢!

推荐答案

您可以按如下所示从该页面手动注销.

You can manually sign Out from that page as below .

这篇关于Google登出iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆