简体   繁体   English

Firebase Phone Auth Error FIRAuthErrorCodeMissingAppToken

[英]Firebase Phone Auth Error FIRAuthErrorCodeMissingAppToken

I'm getting this error from firebase when trying to sign in with a phone number on iOS 尝试使用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'

I've followed all the linked directions ( https://firebase.google.com/docs/auth/ios/phone-auth ) to enable phone authentication and add APNs Keys, etc. 我已按照所有相关联的说明( https://firebase.google.com/docs/auth/ios/phone-auth )启用电话身份验证并添加APNs密钥等。

What "token" is missing to cause this error? 缺少什么“令牌”导致此错误?

Thanks. 谢谢。

We were having the same problem. 我们遇到了同样的问题。 Turns out we should have used a real device with a working SIM card inside . 事实证明我们应该使用一个真正的设备与内部工作的SIM卡 Try it out. 试试看。 Hope it helps. 希望能帮助到你。

It looks like the answer was pretty simple, I was using an outdated version of the Firebase iOS components. 看起来答案非常简单,我使用的是Firebase iOS组件的过时版本。 I updated my Podfile and installed the newest version and everything started working. 我更新了我的Podfile并安装了最新版本,一切都开始工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM