0

我的 index.js 中出现以下错误:

未捕获的 ReferenceError:未定义 MQA

我的 index.js 文件中有以下代码:

MQA.startNewSession({
    //Required for IBM MobileFirst Quality Assurance
    // or "MARKET" if it is production mode.

    mode: "QA",
    shake: true,
    protocol: 'http',
    host: 'ourhostnamehere:80',
    versionName: "1.0", // app release version
    android: {
      appKey: "91719217347da8e6daf648192dc774664978bba1",
      versionNumber: "1" // app version number
    }
     /*ios: {
         applicationKey: "<iOS MQA application key>",
         versionNumber: "1.0" // app version number
     }*/
},{
      success: function () { console.log("mqa success"); },
      error: function (e) { console.log("mqa failed: " + e); }
});

我已经确认 mqa.js 和 tracekit.js 都通过 chrome inspect 加载到我的应用程序中。
我错过了什么?

4

1 回答 1

0

MobileFirst Foundation 8.0 支持至少使用 cordova-ios@4.0.1 和 cordova-android@5.1.1 创建的 Cordova 应用程序

MobileFirst Quality Assurance 当前不支持上述所需的最低插件版本,因此在 MQA 团队将其 Cordova 插件更新到所需的最低版本之前,您不能将 MobileFirst Foundation 8.0 与 MobileFirst Quality Assurance 一起使用。

于 2016-10-18T17:59:26.113 回答