IBM MobileFirst Quality Assurance - MQA Not Define

2019-09-10 19:28发布

问题:

I am getting the following error in my index.js:

Uncaught ReferenceError: MQA is not defined

I have the following code in my index.js file:

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); }
});

I have confirmed that both mqa.js and tracekit.js are loading in my app via chrome inspect.
What am I missing?

回答1:

MobileFirst Foundation 8.0 supports Cordova applications that are created at minimum with cordova-ios@4.0.1 and cordova-android@5.1.1.

MobileFirst Quality Assurance currently does not support the required plug-in version minimum mentioned above, as such you cannot use MobileFirst Foundation 8.0 with MobileFirst Quality Assurance until the MQA team updates their Cordova plug-in to the required minimum.