【问题标题】:App start breaks, when Mobile Quality Assurance Cordova Plugin?移动质量保证 Cordova 插件何时启动应用程序中断?
【发布时间】:2016-03-14 13:08:26
【问题描述】:

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

谁有同样的行为?

我不使用 doDeviceReady 函数,因为应用程序不需要它。 我先尝试过,但没有在我的应用程序中触发,所以 mfp Cordova 集成就像写在Installing the Mobile Quality Assurance plug-in for Apache 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 集成: Installing the Mobile Quality Assurance plug-in for Apache Cordova

此处已验证信息: MFP 与 Cordova 的集成: Integrating IBM MobileFirst Platform Foundation SDK in Cordova applications

【问题讨论】:

  • 您是否在 Android 设备上运行 Marshmallow?
  • 尝试使用这段代码看看它是否有效:
  • MQA.startNewSession({ mode: "QA", android: { appKey: "your app key here" , notificationsEnabled: true }, ios: { appKey: "your app key here" , screenShotsFromGallery: true, } }, { success: function () {console.log("Session Started successfully");}, error: function (string) { console.log("Session error" + string);} });跨度>
  • 您好 Rob,感谢您的反馈。此代码是帮助中的代码,我先尝试过。我知道最好切换照片库。答案是这段代码已经过测试。我已经在问题中放置了帮助和指南的链接。
  • 我提供的代码有效吗?我只是想缩小问题所在。谢谢

标签: cordova ibm-cloud hybrid ibm-mobile-services mobilefirst-qa


【解决方案1】:

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

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-05-14
  • 2023-03-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-02-26
  • 1970-01-01
相关资源
最近更新 更多