Firebase Phone验证错误FIRAuthErrorCodeMissingAppToken

时间:2017-09-13 04:39:32

标签: ios firebase firebase-authentication

尝试使用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密钥等。

导致此错误的“令牌”缺失了什么?

感谢。

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:1)

我们遇到了同样的问题。事实证明我们应该使用一个真正的设备,里面有一个可用的SIM卡。 试试看。希望它有所帮助。