OGeek|极客世界-中国程序员成长平台

标题: 由于 Google 登录,iOS 被拒绝。最新的 Google 登录 (4.0.0) 进入 safari [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 17:13
标题: 由于 Google 登录,iOS 被拒绝。最新的 Google 登录 (4.0.0) 进入 safari

我们的应用被苹果拒绝了

Design - 4.0

We noticed that the user is taken to Safari to sign in or register for an account when logging in with Google+, which provides a poor user experience.

Next Steps

Please revise your app to enable users to sign in with Google+ in the app. You can do this by updating to the latest Google+ SDK.

We recommend implementing the Safari View Controller API to display web content within your app. The Safari View Controller allows the display of a URL and inspection of the certificate from an embedded browser in an app so that customers can verify the webpage URL and SSL certificate to confirm they are entering their sign in credentials into a legitimate page.

我正在使用 pod 并拥有最新的 Google SignIn 库,而不是 GooglePlus 库。 库 4.0.0 (15/05/2016),在发行说明中说

https://developers.google.com/identity/sign-in/ios/release

Removes allowsSignInWithBrowser and allowsSignInWithWebView properties from GIDSignIn.

这意味着我没有办法在 iOS 8 上强制它具有默认的 iOS 9 行为(在应用程序中打开类似浏览器的 safari)。安装 Google App 或 Google+ App 没有区别。

尝试使用 cocoa pod 降级到 2.4.0,但它说

Analyzing dependencies [!] Unable to satisfy the following requirements:

有什么想法吗?

提前致谢



Best Answer-推荐答案


最后,我设法进行更改并通过降级到具有 allowSignInWithBrowser 和 allowedSignInWithWebView 属性 我用的

allowsSignInWithBrowser = NO
allowsSignInWithWebView = YES

必须将 pod 文件更改为此才能构建所有内容(谷歌分析也使事情变得如此困难,导致依赖)。

希望 Google 工程师更新 SignIn 4.0.0,因为我不喜欢使用旧库,但在 Google 更改库之前我不能拒绝我的应用

pod 'Google/Analytics'

pod 'GoogleSignIn', '3.0.0'
pod 'Google/SignIn'
pod 'Google', '2.0.4'
pod 'GoogleAppUtilities'
pod 'GoogleAuthUtilities'
pod 'GoogleNetworkingUtilities'

也祝你们好运, 感谢 Paulw11,他做了一个测试项目,在 iOS8 中看到了同样的问题。 此外,告诉审阅者 App Store 中的其他(甚至大)应用程序都使用 webview,即使 iOS9,不仅是 iOS8,没有帮助,因为他们说这不能成为其他应用程序的理由,他们正在努力拒绝其他也是。

如果进行了任何更改,例如新的 GoogleSignIn 库,请做出新的回答!

关于由于 Google 登录,iOS 被拒绝。最新的 Google 登录 (4.0.0) 进入 safari,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38076050/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://ogeek.cn/) Powered by Discuz! X3.4