Software Archive
Read-only legacy content
17061 讨论

intel.xdk.device.getRemoteData

Fabrizio_C_2
初学者
367 次查看

Hello at all,

I'm new Intel XDK user and I have one problem with my first app.

I use getRemoteData to receive some xml data from an website. In emulator all works but on the device I receive this error:

Uncaught TypeError: Cannot read property 'getRemoteData' of undefined

I added the Network information and Device Cordova plugins.

Somebody have the same issue?

Thanks

Fabrizio

0 项奖励
1 回复
Elroy_A_Intel
员工
367 次查看

I recommend using jQuery AJAX instead of getRemoteData method for accessing your remote data. For more information on jquery AJAX, visit http://api.jquery.com/jquery.ajax/.

I recommend that you add any domain names that your applications will be communicating with to the whitelist field on the Projects panel > Build Settings > Android-Crosswalk, Android, or iOS . For more information on Intel XDK whitelist, visit https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk.

0 项奖励
回复