Software Archive
Read-only legacy content
17061 Discussions

intel.xdk.device.getRemoteData

Fabrizio_C_2
Beginner
365 Views

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 Kudos
1 Reply
Elroy_A_Intel
Employee
365 Views

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 Kudos
Reply