I am creating an authentication system by cell phone number in ionic 2, because I use the Google manual
Firstly, I believe that firebase.auth.RecaptchaVerifier (is one of the necessary parameters)
this.autVer = new firebase.auth.RecaptchaVerifier('contCatcha', { 'size': 'invisible', 'callback': function (response) {
and laster use auth.signInWithPhoneNumber angularfire
this.afAuth.auth.signInWithPhoneNumber("+57" + this.numeroCelular, this.autVer).then(verificationId => { console.log("SMS Enviado"); this.confor = verificationId; this.loading.dismiss(); this.estado = 1; this.esperarCodigo(); })
If the second parameter is firebase.auth.RecaptchaVerifier created
Everything works fine in my computer’s browser, but the following error message is displayed on the mobile device:
I need to replace this with firebase.auth.RecaptchaVerifier , but I don’t know if there is any plug-in or submeter, and also that everything works. I really appreciate your advice.
source share