Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cordova 爱奥尼亚科尔多瓦FirebaseX插件_Cordova_Ionic Framework - Fatal编程技术网

Cordova 爱奥尼亚科尔多瓦FirebaseX插件

Cordova 爱奥尼亚科尔多瓦FirebaseX插件,cordova,ionic-framework,Cordova,Ionic Framework,亲爱的 Am使用@ionic native/Firebase-x v10.2和Cordova插件v5.28 为Android 9构建它 以下是我正在使用的函数: this.firebase.verifyPhoneNumber(phone, 60).then((credential) => { console.log("otp_send_success", credential); this.verfificationId = credential.verific

亲爱的

Am使用@ionic native/Firebase-x v10.2和Cordova插件v5.28

为Android 9构建它

以下是我正在使用的函数:

this.firebase.verifyPhoneNumber(phone, 60).then((credential) => {
  console.log("otp_send_success", credential);
  this.verfificationId = credential.verificationId;
  this.translate.get('sending_otp_success').subscribe(value => {
    this.showToast(value);
  });
  this.otpNotSent = false;
  this.dismissLoading();
  this.createInterval();
}).catch((error) => {
  console.log("otp_send_fail", error);
  this.otpNotSent = true;
  this.resendCode = true;
  this.dismissLoading();
  this.translate.get('sending_otp_fail').subscribe(value => {
    this.showToast(value);
  }); 
});
在emulator上运行时出现以下错误

vendor.js:1823 ERROR TypeError: Object(...) is not a function
at FirebaseX.verifyPhoneNumber (vendor.js:98221)
at OtpPage.webpackJsonp.156.OtpPage.sendOtpPhone (main.js:191)
at OtpPage.webpackJsonp.156.OtpPage.sendOTP (main.js:150)
at OtpPage.webpackJsonp.156.OtpPage.ionViewDidEnter (main.js:100)
at ViewController._lifecycle (vendor.js:23121)
at ViewController._didEnter (vendor.js:23030)
at NavControllerBase._didEnter (vendor.js:58564)
at NavControllerBase._transitionFinish (vendor.js:58374)
at vendor.js:58360
at t.invoke (polyfills.js:3)
我做错了什么