简体   繁体   English

谷歌登录iOS GIDSIgnIn突然失败

[英]Google SignIn iOS GIDSIgnIn failed suddenly

I am using GIDSignIn for months and it is working fine previously. 我正在使用GIDSignIn几个月,它以前工作正常。 User sign in successfully either with Google App or in-app Browser. 用户使用Google App或应用内浏览器成功登录。

Today, I get several reports that users are not able to login, and I confirmed the issue by my own testings. 今天,我收到几条用户无法登录的报告,我通过自己的测试确认了这个问题。

The GIDSignIn now goes to traditional way, opening the in-app browser to prompt user to sign in (even though with Google App installed). GIDSignIn现在采用传统方式,打开应用程序内浏览器以提示用户登录(即使安装了Google App)。 After sign in, it stay at Google.com search engine, and not going back to App anymore. 登录后,它会停留在Google.com搜索引擎上,而不再返回App。

I wonder if there is something wrong with Google side? 我想知道Google方面是否有问题?

Assuming that you guys didn't find a fix (@neobie: I tried your KLSE Screener app, and also the Trello app), I guess the answer is that it is currently impossible to use Google SignIn on iOS without passing through either the in-app Browser or Safari. 假设你们没有找到修复程序(@neobie:我尝试过你的KLSE Screener应用程序,还有Trello应用程序),我想答案是,目前无法在iOS上使用Google SignIn而不通过任何一个-app浏览器或Safari。

But I sure hope I'm wrong - since I'm trying to do sign-in with Google app as well. 但我肯定希望我错了 - 因为我也想尝试使用谷歌应用登录。

My findings so far: 到目前为止我的发现:

  • Setting allowSignInWithWebView = false and allowsSignInWithBrowser = false doesn't seem to do anything. 设置allowSignInWithWebView = false并且allowSignInWithBrowser = false似乎没有做任何事情。 The webview still pops up. webview仍然会弹出。
    • I double-checked the URL Schemes (one containing REVERSED_CLIENT_ID, one containing Bundle ID) - that should not be the problem. 我仔细检查了URL Schemes(一个包含REVERSED_CLIENT_ID,一个包含Bundle ID) - 这应该不是问题。
  • I'm not sure what Google defines as "a capable Google app" or "suitable Google apps" in the "GIDSignIn class documentation" but I installed Chrome, Google+ and Gmail on my test device, and that doesn't help. 我不确定Google在“GIDSignIn课程文档”中定义为“功能强大的Google应用”或“合适的Google应用”,但我在我的测试设备上安装了Chrome,Google +和Gmail,但这无济于事。
  • That same GIDSignIn documentation says that checkGoogleSignInAppInstalled is deprecated - and "always calls back with NO on iOS 9 or above". 同样的GIDSignIn文档说不推荐使用checkGoogleSignInAppInstalled - 并且“总是在iOS 9或更高版本上回拨NO”。 I don't understand what that means, and can't find any further info on it. 我不明白这意味着什么,也找不到任何进一步的信息。 But it doesn't sound promising. 但这听起来并不乐观。
  • Aside, I also had a lot of trouble with 'native' Facebook Login - and finally found that setting loginBehavior = FBSDKLoginBehaviorSystemAccount there solves it - although I don't fully understand why FBSDKLoginBehaviorNative doesn't work. 除此之外,我在“原生”Facebook登录方面遇到了很多麻烦 - 终于发现设置loginBehavior = FBSDKLoginBehaviorSystemAccount可以解决它 - 虽然我不完全理解为什么FBSDKLoginBehaviorNative不起作用。 See this thread. 看到这个帖子。 Note that for Facebook, several LSApplicationQueriesSchemes need to be set, but this should not be required for GIDSignIn? 请注意,对于Facebook,需要设置几个LSApplicationQueriesSchemes,但GIDSignIn不需要这样做?

So please, if I'm wrong, I'll be happy to stand corrected - tell me. 所以,如果我错了,我会很高兴能够得到纠正 - 告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM