使用cordova-plugin-emm-app-config后,未定义不是对象错误

时间:2018-09-23 16:56:16

标签: ionic-framework cordova-plugins

我正在使用cordova-plugin-emm-app-config link开发离子应用程序。当我尝试使用addEventListener时:

try {
  document.addEventListener("deviceready", onDeviceReady, false);
}
catch (Error){
  this.error = Error.message;
}

它返回undefined is not an object (evaluating 'this.cordova.plugins'),但我无法调用onDeviceReady()函数。

我想知道是什么原因造成的?

0 个答案:

没有答案