MobileFirst 6.3 Network Debug Issue

谁说胖子不能爱 提交于 2019-12-08 11:09:34

问题


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,

I used to see them with previous worklight versions.

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

Any Help ?


回答1:


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.

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.

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;

Should then work.



来源:https://stackoverflow.com/questions/31966974/mobilefirst-6-3-network-debug-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!