由于使用 Firebase Phone 身份验证的 Flutter 应用程序中出现 "Token mismatch" 身份验证错误,Apple 拒绝了该应用程序

Apple rejected the app due to "Token mismatch" authentication error in a Flutter app with Firebase Phone Authentication

使用 phone 号码的 Firebase 身份验证已通过 Testflight 在 iOS 上进行配置和测试,但在 Apple 审查应用程序时似乎无法正常工作。

我们提供了一个列入白名单的 phone 号码,它适用于从 Testflight 下载的版本。 我在 GitHub 中发现了几个类似的问题,但都已修复...我使用的是最新版本的 Firebase 身份验证插件。

我也添加了一个 GitHub 问题,但那里没有反应:https://github.com/FirebaseExtended/flutterfire/issues/3800

有人必须处理这个吗?

终于通过了苹果审核。以下是我们所做的,以防将来有人遇到这种情况:

  • 我们在 Apple Developer 帐户中创建了两个 APN。第二个是在 Firebase 控制台中配置的

     ===> we removed the first so now we have only one APN in Apple Dev account
    
  • 在 Firebase 控制台中,我们还上传了证书(Firebase 指出 如果上传了 .p8 密钥,则不会使用这些)

     ===> we removed the unused APN certificate and used only the APN .p8 key.
    

重新提交应用审核,审核通过。