- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am making a chatting program that stores the conversation in the cache object as well as other data. Up until the recent Intel XDK update, my code was working fine, but now when I try to run the app in the App Preview on my iPhone, the intel.xdk.cache never loads. In the emulator, it still works fine though. I based the start of my code off of whether or not the cache loads and it never runs (I have an alert that it should trigger).
//animate is window.requestAnimationFrame var intel;//included to make sure test of existence doesn't cause error function onReady(){/*app starts here, including an alert*/} function wait(){ if(!intel || !intel.xdk || !intel.xdk.cache) animate(wait);//so that its not running at full speed else onReady(); } animate(wait);
I have made sure the plug-in is still selected (it is) and whether this code still works when I remove the last condition (it does). I even tried reinstalling the App Preview but to no avail. Am I missing something? Is there another plugin I need to include or was the cache deprecated?
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you check in the YourProject.xdk file if under the plugins, for cache plugin, selectedState is "Included". There seems to be a bug, it doesn't seem to save the selected state of the plugin. If it is "Excluded" please change it to "Included" and try to to push your files to the server again.
Swati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It worked, but only when I checked and unchecked it in the Intel XDK, not when I altered the file manually.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've reported this bug. For now please check/uncheck the plugin. The .xdk file gets written when you upload your files under Test tab and under Build tab. So double check in the .xdk file before you test and build.
Sorry about the inconvenience.
Swati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alessandro, I recommend that you start a fresh project and then check/uncheck the appropriate plugin and then go to Test tab directly (do not touch the emulate tab) then your plugins should work with App Preview. A fix for this plugin issue is on it's way. We will update you soon.
Swati

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