【发布时间】:2019-07-25 15:49:07
【问题描述】:
我正在尝试在 ionic 项目中使用 cordova-plugin-firebase 进行电话身份验证,该项目在 android 真实设备上运行该项目。但最近我遇到了一个抱怨invalid phone number 的问题,然而,它在几周前才起作用。
这是代码:
signIn() {
// add a local variable to store navCtrl object
let thatNavCtrl = this.navCtrl;
//Step 1 — Pass the mobile number for verification
window.FirebasePlugin.verifyPhoneNumber('+93794737444', 60, function (credential) {
let verificationId = credential.verificationId;
//This is STEP 2 — passing verification ID to verify Page
thatNavCtrl.push(VerifyPhonePage, { verificationid: verificationId, phone: tell });
}, (error) => {
console.error(error);
});
如果您需要其他东西来解决问题,请告诉我。
【问题讨论】:
标签: android firebase cordova ionic-framework firebase-authentication