简体   繁体   中英

Firebase Phone Auth Error FIRAuthErrorCodeMissingAppToken

I'm getting this error from firebase when trying to sign in with a phone number on iOS

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.

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 . 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. I updated my Podfile and installed the newest version and everything started working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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