“Invalid Token” when trying to authenticate phone number using firebase

前端 未结 7 1986
庸人自扰
庸人自扰 2020-12-16 11:13

This is my code:

import FirebaseAuth


class AuthPhoneNum {

    static func getPhoneNum(phoneNumber: String) {
        PhoneAuthProvider.provider().verifyPh         


        
相关标签:
7条回答
  • 2020-12-16 11:59

    I was also experiencing this problem. Checked the following:

    • Correct bundle Id
    • Correct Google-Info.plist
    • Correct aps-environment value
    • Correct APNS token type when calling auth.setAPNStoken (.unknown for auto detect)

    Nothing helped until in Firebase app settings I uploaded the APNS authentication key (p8) instead of certificates - I used those certificates before for push notifications only and everything was working fine but for phone number notifications something went wrong.

    0 讨论(0)
提交回复
热议问题