My app need some data files deployed at server URL (i.e, http://$server:8080 /data/map.xml), this data may be updated to new version, I want to cache it to local storage of the mobile app (i.e. place it at assets/www/default/ data/map.xml).
thanks for any suggestions.
This topic has been locked.
Pinned topic How to cache remote resource to local storage
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
SystemAdmin 110000D4XK570 Posts
Re: How to cache remote resource to local storage2012-05-15T14:00:23ZThis is the accepted answer. This is the accepted answer.Hello Daniel.
You can't push it to assets/www/default/data/map.xml but what you can (and should) do is access the localStorage.
See phoneGap documentation at: