Ionic3 + Firebase phone auth on iOS

Hi! Anyone use ionic3 + firebase phone auth?

On android, I can make it,
However , on iOS, it can get the verify no. By google’s sms, but after insert the verify , it nothing happens…

Does anyone can make it ?
Thanks a lot

I don’t know why can’t get any “verificationId” , can anyone tell me that, Thanks a lot

In case you haven’t resolved this, this should help…

window.FirebasePlugin.verifyPhoneNumber(phonenumber, 60, (credential)=> {
        if (credential.verificationId)
          env.verificationId = credential.verificationId; //android
        else
          env.verificationId = credential;  //ios
})
1 Like

Dear @obinnae
Thank you very much,

Can you tell me, what plugin you use it for that code ?
Thanks so so much

Ivan

The Firebase plugin, cordova-plugin-firebase (https://github.com/arnesson/cordova-plugin-firebase).

Good luck!

1 Like

Dear @obinnae

Thank you very much

Ivan

1 Like

Did you get this working @ivan5182?

not yet, just know why , but can’t fix it

Could you please post the log from the xcode terminal after you use “firebaseAuthentication
.verifyPhoneNumber()” function