Tag: google

从iOS应用程序到Google表单的HTTP POST

我正在处理一个POST请求,并已使用此答案 。 有很多文件NSUrlRequest(和连接),但我很难找出为什么请求不起作用。 我使用此代码使用HTTP Dev Client执行了成功的POST entry.0.single=name&entry.1.single=location&entry.4.single=phoneNumber&entry.2.single=order????&pageNumber=0&backupCache= 4个variables(名称,位置,phoneNumber,顺序)都链接到应用程序中的textField。 – (IBAction)placeOrder:(id)sender { NSURL *nsURL = [[NSURL alloc] initWithString:@"url"]; NSMutableURLRequest *nsMutableURLRequest = [[NSMutableURLRequest alloc] initWithURL:nsURL]; // Set HTTP method to POST [nsMutableURLRequest setHTTPMethod:@"POST"]; // Set up the parameters to send. NSString *paramDataString = [NSString stringWithFormat:@"%@=%@&%@=%@&%@=%@&%@=%@&pageNumber=0&backupCache=",@"entry.0.single", _name, @"entry.1.single", _location, @"entry.4.single", _phoneNumber, @"entry.2.single", _order]; // Encode the parameters to […]

自定义schemeURI不适用于“networking”客户types – 带有Firebase的Google

我正在尝试在我的iOS应用中使用Firebase进行谷歌login。 我遵循这个教程。 https://firebase.google.com/docs/auth/ios/google-signin我已经在firebase中设置了iOS应用,并使用googleserver-Info.plist中的google clientID和reversedClientID。 仅供参考:我有一个自定义loginbutton,而不是谷歌loginbutton。 无论如何,当我点击loginbutton,谷歌以下错误显示在一个web视图。 我知道我的问题和这个问题中描述的一样。 Google 400错误:无效的请求“Web”客户端types不允许使用自定义模式URI 但是,就我而言,我已经在Firebase中创build了应用程序,但仍然出现错误。 请任何想法…

从ios扩展中检索谷歌用户

我正在尝试为我的应用程序创build一个共享扩展,该扩展需要从该扩展程序login到Google。 我已经设置了共享组钥匙串,并能够从主应用程序写入并读取扩展目标。 但是我无法通过扩展名loginGoogle,因为GIDSignIn.sharedInstance().hasAuthInKeychain()总是返回false。 有没有办法从一个扩展名login到谷歌,我该怎么做? 任何帮助,将不胜感激。

使用Xcode 8 beta 6的Googlelogin不能使用iOS 10 Beta 7

我在应用程序商店有一个应用程序,工作完全正常,直到iOS 10的第几beta(我不完全确定哪一个)。 它也适用于iOS 9.3。 不过,我并没有在iOS 10 beta 7上进行testing,而且谷歌loginfunction已经完全破解。 我正在使用来自cocoapods的最新版本的GIDSignIn 。 这是我的代码: [GIDSignIn sharedInstance].clientID = [[ParseFetcher sharedInstance] getRandomParseK]; [GIDSignIn sharedInstance].delegate = sharedInstance; [GIDSignIn sharedInstance].uiDelegate=sharedInstance; [GIDSignIn sharedInstance].scopes = [NSArray arrayWithObjects:@"https://www.googleapis.com/auth/youtube",@"https://www.googleapis.com/auth/youtube.force-ssl", nil]; [[GIDSignIn sharedInstance] signIn]; 这是它在设备上的外观: 它只是像这样卡住。 如果我点击顶部的刷新button,它会尝试刷新并永久卡在这里。 点击完成button发回我的应用程序。 控制台中没有logging错误。 但是,当我在iOS 10模拟器上运行相同的应用程序, safari view controller甚至不打开。 什么也没有发生。 但是控制台logging下这个长长的冗长的东西,其中以下看起来是最“有用”的东西,但我不知道什么是错的: nw_endpoint_resolver_receive_report [8 i.ytimg.com:443 in_progress resolver (satisfied)] received child report:[8.1 206.248.149.148:443 waiting […]