MobileFirst 6.3网络调试问题

编程入门 行业动态 更新时间:2024-10-25 17:29:58
本文介绍了MobileFirst 6.3网络调试问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用MobileFirst 6.3的应用程序,建立一个Android版本,并试图监控XHR查询Chrome浏览器开发工具网络上时,查询没有显示,

I am using MobileFirst 6.3 for an application, when building an Android version and trying to monitor XHR Query on Chrome Dev Tool network, queries are not showing,

我以前看到他们previous工作灯的版本。

I used to see them with previous worklight versions.

我看到有在6.3版本+一个新的插件WLNativeXHRPlugin,这是否与我的问题?

I saw that there is a new plugin WLNativeXHRPlugin in 6.3 + versions, is it related to my issue?

任何帮助吗?

推荐答案

在XHR请求已经从JavaScript的层到原生层感动,这就是为什么你没有看到他们在Chrome开发工具的网络选项卡

The XHR requests have been moved from the JavaScript layer to the native layer, and this is why you do not see them in the Network tab in the Chrome dev tools.

您可以把他们带回来,但你一定不要忘记当你去到生产,从应用程序中删除此code。这也是不支持并可以打破/停止在任何时刻工作,这可能发生在你的应用程序将不支持任何效果。

You can bring them back, but you must then not forget to remove this code from the app when you go to production. It is also not supported and can break/stop working at any moment, any effect that may happen to your app will not be supported.

添加以下底部的common \\ JS \\ initOptions.js:

Add the following to the bottom in common\js\initOptions.js:

WL.androidProfileData[WL.EPField.SUPPORT_WL_NATIVE_XHR] = false; WL.iphoneProfileData[WL.EPField.SUPPORT_WL_NATIVE_XHR] = false; WL.ipadProfileData[WL.EPField.SUPPORT_WL_NATIVE_XHR] = false; WL.windowsphone8ProfileData[WL.EPField.SUPPORT_WL_NATIVE_XHR] = false;

然后应该工作。

更多推荐

MobileFirst 6.3网络调试问题

本文发布于:2023-11-23 10:14:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621078.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网络   MobileFirst

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!