gpt4 book ai didi

ios - 苹果拒绝app 10.6 因为Facebook打开Safari登录

转载 作者:可可西里 更新时间:2023-11-01 05:03:47 28 4
gpt4 key购买 nike

我发送了另一个版本的应用程序,允许用户通过 Facebook 登录。当然,我用的是官方的Facebook iOS SDK。

但是 Apple 两次拒绝了我的应用程序,原因如下:

The app opens a web page in mobile Safari for logging in, then returns the user to the app. The user should be able log in without opening Safari first.

我试图获取更多信息,审稿人的回答是:

Thank you for your response. We reviewed your app version 3.2.1 and when the user taps Facebook to login, the user is taken to mobile Safari and then back to the app.

It provides poor user's experience and not in compliance with the Guidelines.

Thank you for your response. It would be appropriate to allow the users to login inside the app without redirecting to mobile Safari.

为什么只有我的应用出现此错误,而数十个应用都以这种方式使用 Facebook iOS SDK 而没有被拒绝?

Facebook iOS SDK 有没有办法在应用内打开登录页面?

最佳答案

Facebook SDK 4.0+

FBSDKLoginManager *login = [FBSDKLoginManager new];
if (![UIApplication.sharedApplication canOpenURL:[NSURL URLWithString:@"fb://"]])
{
login.loginBehavior = FBSDKLoginBehaviorWeb;
}

它将阻止通过 Safari 打开。

关于ios - 苹果拒绝app 10.6 因为Facebook打开Safari登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27918011/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com