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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…