javascript - Intel xdk $.getJson fail on apk -


i'm developing app intel xdk, , have make json request website. works if try app xdk emulator , if try app preview if build apk file, install it, request fail.

this example call:

$.getjson("http://time.jsontest.com", function(data){ alert(data);}); 

and response:

get http://time.jsontest.com/ 404 (not found) 

my device connected.

in index.html have included "intelxdk.js" , "xhr.js" this page says

ok, solved.i had add <access origin="*" /> config.xml file. more info here: https://cordova.apache.org/docs/en/4.0.0/guide_appdev_whitelist_index.md.html


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -