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
Post a Comment