0

当 MQA 会话开始时,我的 MFP Cordova Ionic Hybrid Andriod 应用程序中断。(使用 MQA Bluemix)

谁有同样的行为?

我不使用 doDeviceReady 功能,因为应用程序不需要。我首先尝试了它,但没有在我的应用程序中触发,因此不需要像在为 Apache Cordova 安装移动质量保证插件中所写的 mfp Cordova 集成 。

我使用我的 Android Nexus 9 运行混合应用程序。Android 5.0.1 内核版本 3.10.40-ga3846f1

区别:

a) 我稍微更改了 MQA 会话代码,并在 index.js 的 wlCommonInit() 中使用了 MQA 会话开始。我试图在真正的安卓设备上运行它。

MQA.startNewSession(
{ // Options
      mode: "QA", // or mode: "MARKET" for production mode.
      android: {
                 appKey: "XXX" ,
                 notificationsEnabled: false
                },
      ios:     {
                 appKey: "XXX" ,
                 screenShotsFromGallery: false,
               },
      //serverURL: "https://devops.quality4mobile.com" , // The default value is the IBM Bluemix server.
      //defaultUser: "email_address", // The mail address of the tester so it does not have to be repepeatedly entered.
      machExceptionEnabled: false, // Ensure debugging mode is not on when this
                                   //  value is set to true.
      reportOnShakeEnabled: true  // Enable problem reporting with a shake.
 }, successMQA, errorMQA);

 function successMQA() {
 console.log("MQA Session Started successfully");
 }

 function errorMQA(error) {
  console.log("MQA Session error" + error);
 }

我无法提供额外的调试或日志,因为它在“chrome 检查设备”可以显示任何交互之前直接中断。

我主要遵循这里的说明:

MQA Cordova 集成: 为 Apache Cordova 安装移动质量保证插件

此处已验证信息:MFP 与 Cordova 集成: 在 Cordova 应用程序中集成 IBM MobileFirst Platform Foundation SDK

4

1 回答 1

1

通过在 wlCommonInit 函数中包含 MQA.startNewSession,我能够使 MFP 项目正常工作。

于 2015-12-28T20:28:52.427 回答