android failed to fetch url,已解决: Failed to fetch url - Intel Community

Hello,

My code is:

intel.xdk.device.getRemoteData(app.url + 'some/url',"POST","some=data","success","error");

It works great in emulate tab, but if I build crosswalk for android or just android it doesnt work.

I've tried export app to chrome and check it console. This is what i get:

Uncaught ReferenceError: intel is not defined

Legacy hybrid mobile app build -> Android make a build with this works, but resolution is too high and I cant see anything except a data is downloaded from external server successfully.

EDIT

I've fixed this js error by changing

$(function(){

myFetchFunc();

});

to:

document.addEventListener("intel.xdk.device.ready",function(){

myFetchFunc();

},false);

But fetching data from url is still broken in build. Works great in emulating and usb debug...