我有一个有关Apple登录的问题。在App Store准则中,我们可以发现,当应用程序使用第三方登录选项(例如google或facebook)时,Apple登录是强制性的。正如我所知,ios 13中添加了Apple登录机制。 iOS的最低版本设置为11或12?我仍然需要实现Apple登录(如果可以,怎么办?)?

最佳答案

private func setupLoginWithAppleButton() {
        if #available(iOS 13.0, *) {
            //Show sign-in with apple button. Create button here via code if you need.
        } else {
            // Fallback on earlier versions
            //Hide your sign in with apple button here.
        }
    }

如果出现错误:授权返回错误:该操作无法完成。 (com.apple.AuthenticationServices.AuthorizationError错误1000。)

关于ios - Apple在ios13下登录,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/59953429/

10-16 17:45