I am creating a system of authentication by number of cell phone in ionic 2, for that I use the google guide
First, I believe a firebase.auth.RecaptchaVerifier
(Is one of the necessary parameters)
this.autVer = new firebase.auth.RecaptchaVerifier('contCatcha', {
'size': 'invisible',
'callback': function (response) {
// reCAPTCHA solved, allow signInWithPhoneNumber.
}
});
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();
})
Where the second parameter is the firebase.auth.RecaptchaVerifier created
In the browser of my pc everything works fine, but on the mobil shows the following error message:
I need to replace that firebase.auth.RecaptchaVerifier
, but I do not know if there is any plugin or sub meter to do and ahcer that everything works
I really appreciate your advice