【问题标题】:Firebase Phone Auth Error FIRAuthErrorCodeMissingAppTokenFirebase 电话身份验证错误 FIRAuthErrorCodeMissingAppToken
【发布时间】:2018-02-21 15:48:24
【问题描述】:

尝试在 iOS 上使用电话号码登录时,我从 firebase 收到此错误

error_name: 'ERROR_MISSING_APP_TOKEN',
NSLocalizedDescription: 'There seems to be a problem with your project\'s Firebase phone number authentication set-up, please make sure to follow the instructions found at https://firebase.google.com/docs/auth/ios/phone-auth' },
domain: 'FIRAuthErrorDomain'

我已按照所有链接的指示 (https://firebase.google.com/docs/auth/ios/phone-auth) 启用电话身份验证并添加 APNs 密钥等。

缺少什么“令牌”导致此错误?

谢谢。

【问题讨论】:

  • 升级到手机验证后,您是否尝试过下载新的配置文件?您是否有可能使用在 Phone Auth 发布之前下载的版本?
  • 你找到解决办法了吗?
  • 是的 - 我在我的 cocoapods 中使用了一个过时版本的 firebase 核心。

标签: ios firebase firebase-authentication


【解决方案1】:

我们遇到了同样的问题。事实证明,我们应该使用内置 SIM 卡的真实设备。 试试看。希望对您有所帮助。

【讨论】:

    【解决方案2】:

    看起来答案很简单,我使用的是 Firebase iOS 组件的过时版本。我更新了我的 Podfile 并安装了最新版本,一切都开始工作了。

    【讨论】:

      猜你喜欢
      • 2018-01-19
      • 1970-01-01
      • 2021-06-16
      • 2021-07-13
      • 1970-01-01
      • 2021-03-16
      • 1970-01-01
      相关资源
      最近更新 更多