- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am developing an app. I build the app using 'Crosswalk for Android'.
The app installs and runs as expected. However when I shut the app down and start again any data saved in the cache is lost. As far as I can tell from the documentation the data should persist. I am using:
intel.xdk.cache.setCookie(key, value, 10);
and
value = intel.xdk.cache.getCookie(key);
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you mind explaining the situation some more to help me?
A potential problem is as follows. The documentation states:
For cookies, the intention is that you would use setCookie to save string data in name-value pairs. Cookies persist between application sessions. Data values may be retrieved using the getCookie command or from the getCookieList command as soon as the "intel.xdk.device.ready" event is fired.
Could you be trying to get the cookie from the cache before intel.xdk.device.ready event is fired?

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