ios - Firebase 和 iOS 15 - 无法联系 Recaptcha。检查您的连接并重试

昨晚我更新了所有的 pod。我正在使用

Firebase (8.9.1)
Firebase/Auth (8.9.1)
Firebase/Messaging (8.9.1)
FirebaseAnalytics (8.9.1)
FirebaseCore (8.9.1)
FirebaseCoreOnly (8.9.1)
//... everything is 8.9.1

今天我将我的应用程序提交给 App Review,我收到了一条关于 Recaptcha 未加载的消息。

我提交了 2 个应用程序,但它们都无法通过 iOS 15 中的 Recaptcha,但在我这边,我有一台运行 iOS 13 的设备和另一台运行 iOS 14 的设备,Recaptcha 对这两个应用程序都运行良好。我什至在模拟器上运行它,Recaptcha 对这两个应用程序都有效。我有用于登录的测试电话号码在 Firebase 中注册为测试号码。我可以毫无问题地使用该号码登录。

即使我上次 AppStore 更新已经过去几个月了,但我以前提交的任何内容都没有发生过这种情况。从上次更新到今天,我从未更改过任何代码。

我想知道这是 iOS 15 的问题吗?

Guideline 2.1 - Performance - App Completeness

We discovered one or more bugs in your app.

Specifically, we still encountered an error message at the login. Please see the attached screenshot(s) for your reference.

Review device details:

  • Device type: iPhone and iPad
  • OS version: iOS 15.1

Next Steps

Please run your app on a device to reproduce the issues, then revise and submit your app for review. If at first you're unable to reproduce the issue, try the following:

  • For new apps, uninstall all previous versions of your app from a device, then install and follow the steps to reproduce.
  • For app updates, install the new version as an update to the previous version, then follow the steps to reproduce.

If we misunderstood the intended behavior of your app, please reply to this message in Resolution Center to provide information on how these features were intended to work.

这是他们发送的屏幕截图。这两个应用程序都是一样的。

最佳答案

在部署了几个都被 App Review 团队拒绝的新版本后,我终于通过了。

我关注了this github .寻找@rignaneseleo 和@diegogarcia 的答案)。他们都说将其设置为 .unknown,如 Auth.auth().setAPNSToken(deviceToken, type: .unknown)

在 AppDelegate 中我有:

func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
        
        Messaging.messaging().apnsToken = deviceToken
        Messaging.messaging().setAPNSToken(deviceToken, type: MessagingAPNSTokenType.prod)
        Auth.auth().setAPNSToken(deviceToken, type: .unknown) // Setting this to .unknown is what seems to have helped
}

然后我跟着这个answer通过@sajedeNouri

set the Identifier to Client in the "URL Types" in the Info of the project.

https://stackoverflow.com/questions/69909351/

相关文章:

r - 具有不同颜色负值的条形图

javascript - 是否所有 WebAPI 都被推送到任务队列中?

swift - 我们如何在 SwiftUI 中制作自定义 GeometryReader?

angular - 检测关闭浏览器 Angular 12 的事件

jooq - jooq record 取数据时是否使用列索引?

node.js - 在不使用 NVM for Windows 的情况下在 Windows 上安装多个

networking - float IP 在 Digital Ocean 上的使用

python - 如何将路径参数传递给 Pydantic 模型?

kubernetes - Kubernetes 如何处理同一资源的多个 API 版本?

python - 调用 "dense_features_5"层时遇到异常