- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don´t know if it is only in tablet Android, but the command intel.xdk.device.getRemoteData do not fire the script on server.
My APP runs OK on emutator (XDK) and in my phone Samsung S4 android 4.4.2, but do not run on AppPreview or installed (APK) on tablet Samsung Tab 10.1 I android 4.0.4 or Motorola Xoom android 4.1.2.
I did a debug process on tablet (Xoom) and the script runs OK until the command intl.xdk.device.getRemoteData, but looking on server, the URL called is not fired. If it is not fired, no return occurs and the APP stops.
Is there any information or action to do for this situation?
Thanks.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a few questions:
- Which build target (Cordova 3.x Crosswalk for Android, Android, or Legacy Android ) are you using?
- Are you able to get a response using the Get reponse from your sever?
- Did you include the "xhr.js" file
In the HEAD element, include the following files
<!-- phantom library, needed for XDK "legacy" container api calls --> <script src="intelxdk.js"></script> <!-- phantom library, needed for Cordova api calls --> <script src="cordova.js"></script> <!-- phantom library, needed for XDK "legacy" container CORS --> <script src="xhr.js"></script>
Example (GET Request)
//GET method example intel.xdk.device.getRemoteData("https://blockchain.info/tobtc?currency=USD&value=500", "GET","","success_handler","error_handler"); //Example Event Handlers function success_handler (data) { alert("success: " + data); } function error_handler(data) { alert("error: " + data); }
Example (POST Request)
//POST method example intel.xdk.device.getRemoteData("<server_URL>","POST","E-MAIL=html5tools@intel.com&TEST=1&MAX=0","success_handler","error_handler"); //Example Event Handlers function success_handler (data) { alert("success: " + data); } function error_handler(data) { alert("error: " + data); }
For more information, navigate to https://software.intel.com/en-us/node/493006.
You can also find past forum posts that will provide support for some of your present and future issues at https://forums.html5dev-software.intel.com/index.php.
Forum posts related to
https://forums.html5dev-software.intel.com/viewtopic.php?f=26&t=5089
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Elroy,
Follow answers:
- Which build target (Cordova 3.x Crosswalk for Android, Android, or Legacy Android ) are you using?
Android
- Are you able to get a response using the Get reponse from your sever?
Not using these tablets. No request is received on server.
Normal response from smartphone (Samsung S4)
- Did you include the "xhr.js" file
Yes
In the past, usign the old building, in all devices everithing was OK. But Google is showing the problem about Cordova 3.3. Then, I need to build again using Android option (it is better because the stuff is always present in XDK).
Using debug, no error is showed when this command is passed. But no action is fired after that (success or error).
I do not mark any cordova option in the building. Only Intel.XDK options are selected.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using the Crosswalk for Android build option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did this test: build using Crosswalk option.
The size of APK jumped from 3.5 Mb to 19.3 Mb!
The performance on tablet is terrible, very very very slow.
And no fix the problem: the getRemoteData is still not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I posted new information about this issue on https://software.intel.com/en-us/comment/1804967#comment-1804967

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page