草庐IT

gidsignin

全部标签

iOS Google 登录不允许用户代理

我在objective-ciOS应用程序中集成了googlesignIn,它工作正常,但现在有一段时间出现此错误。这是点击按钮时的登录代码:[GIDSignInsharedInstance].uiDelegate=self;[GIDSignInsharedInstance].delegate=self;[[GIDSignInsharedInstance]setScopes:@[@"https://www.googleapis.com/auth/contacts.readonly",@"https://www.google.com/m8/feeds/"]];[[GIDSignInshar

ios - GIDSignInDelegate 方法不在 iOS 8.4 中调用

我已经在我的应用中实现了googlesignIn。它在iOS9+中运行良好。但它在8+版本中产生了问题。我已将google登录初始化为:[GIDSignInsharedInstance].uiDelegate=self;[GIDSignInsharedInstance].delegate=self;在我的按钮中点击下面的代码是他们的:-(void)userDidTapSignInButton:(UIButton*)sender{[[GIDSignInsharedInstance]signIn];}只有这个GoogleDelegate被调用:-(void)signInWillDispat

ios - 错误域=MCOErrorDomain 代码=5 "Unable to authenticate with the current session' 的凭据。”

我在为imapSession调用checkAccountOperation方法时遇到此错误ErrorDomain=MCOErrorDomainCode=5"Unabletoauthenticatewiththecurrentsession'scredentials."UserInfo={NSLocalizedDescription=Unabletoauthenticatewiththecurrentsession'scredentials.}这是我的代码:MCOIMAPSession*session=[[MCOIMAPSessionalloc]init];session.dispatc

ios - 类型 'GIDSignIn' 的值没有成员 'presentingViewController'

我正在使用GoogleSignInSDK(与cocoapods一起安装)学习谷歌登录到应用程序。我没有在pod文件中指定版本,它自动安装了GoogleSignIn(4.4.0)。浏览文档here.根据文档,要添加登录按钮,我们必须编写GIDSignIn.sharedInstance()?.presentingViewController=self//Automaticallysignintheuser.GIDSignIn.sharedInstance()?.restorePreviousSignIn()但在最新的Xcode版本10.3(10G8)中出现错误Valueoftype'GID

ios - 谷歌登录成功后不调用委托(delegate)方法

我正在使用googlesdk进行google登录,但在输入电子邮件和密码后在viewDidLoad中我添加了委托(delegate)//设置谷歌登录代理[GIDSignInsharedInstance].delegate=self;[GIDSignInsharedInstance].uiDelegate=self;-(void)signIn:(GIDSignIn*)signIndidSignInForUser:(GIDGoogleUser*)userwithError:(NSError*)error{}不叫。问题在哪里没有得到当我输入用户电子邮件和密码时,我得到了这个调用此方法,显示错

ios - 如何在 iOS 中使用 GIDSignIn 和 GTMOAuth2Authentication 获取刷新 token ?

我正在编写一个iOS应用程序,它使用Google的GIDSignIn[1]来登录用户并使用GTLServiceYoutube来执行针对Youtube的查询(上传视频和检索Youtube视频列表)。这在用户首次登录时工作正常,但大约一小时后,访问token过期并且由于401错误(无效凭据),用户无法再使用GTLServiceYoutube执行查询。成功登录后,我使用以下代码设置GTMOAuth2Authentication:-(void)signIn:(GIDSignIn*)signIndidSignInForUser:(GIDGoogleUser*)userwithError:(NSE

ios - 使用 GIDSignIn 处理登录另一个 Google 应用程序时不获取 Google 用户

我正在使用GoogleSign-InforiOS当使用模拟器时它工作正常,因为没有安装谷歌应用程序并且用户正在获取,但是当使用我的iPhone6设备时打开youtube(其中有一些注册帐户)进行处理登录。之后,当返回应用程序代码时,不要进入此功能:-(void)signIn:(GIDSignIn*)signIndidSignInForUser:(GIDGoogleUser*)userwithError:(NSError*)error任何人都可以帮助我我不能使用其他功能进行登录我必须调用[[GIDSignInsharedIstance]signIn]并且此功能检测是否安装了另一个谷歌应用

ios - 重新启动应用程序时 GIDSignIn.sharedInstance().currentUser nil

最初我在检查我们是否已将数据保存到钥匙串(keychain)中时遇到了问题。我找到了这篇文章并遵循了BhavinBhadani的建议:Wheneveryoucheckif([GIDSignInsharedInstance].hasAuthInKeychain),beforethataddyoursigninscopes..https://github.com/googlesamples/google-services/issues/27这解决了我的第一个问题,即GIDSignIn.sharedInstance().hasAuthInKeychain()在用户之前成功登录然后终止应用程序

swift - 如何使用 google 登录 sdk 在 UIButton 而不是 UIView 中实现 google 登录?

friend们,我是初学者级别的iosswift学习者。我一直在尝试在我的试用应用程序中进行谷歌登录。根据来自谷歌开发人员和其他教程的资源,我成功地使用UIView进行了登录。然后我试图在对我不起作用的UIButton的操作block中实现相同的代码。我想在UIButton中放置一个没有文本的自定义图像。我试过很多搜索引擎都没有提供明确的答案。请有人指导我@IBOutletweakvarsignInButton:GIDSignInButton!overridefuncviewDidLoad(){super.viewDidLoad()//Doanyadditionalsetupafter

ios - 谷歌登录按钮按下检测 ios

我正在为他们的登录按钮上的谷歌文档苦苦挣扎。基本上,我想在按下谷歌登录按钮后立即在屏幕上添加一个事件指示器。但是,只有两个函数真正从下面的文档中调用https://developers.google.com/identity/sign-in/ios/api/protocol_g_i_d_sign_in_u_i_delegate-p#a3674af917a79f4b87a58f3f8ff4d4002-signInWillDispatch:error:登录流程已完成选择如何继续,用户界面不应再显示微调器或其他“请稍候”元素。更多...-signIn:didSignInForUser:wit