我得到我的index.js以下錯誤:IBM MobileFirst質量保證 - MQA未定義
Uncaught ReferenceError: MQA is not defined
我在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檢查在我的應用中加載。
我錯過了什麼?
@Idan Adar - 我可以通過將其置於wlCommonInit()中來解決此錯誤。但是現在它說失敗:未找到類。這是什麼意思? – KayVan
@Idan Adar但是現在它說失敗:未找到類。這是什麼意思? – KayVan
我不知道。你沒有真正提供任何可以使用的東西......如果你有一個你可以上傳的項目,它可以被調試。 –