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?