I have an application written in HTML5 that uses localstorage. The user should be able to play this game in airplane mode, but right now it goes to my website to load the page.
Q: How do I save a web page onto a mobile device so that it doesn’t require going to the Internet to dl it first?
Is the answer different for iPhone vs. Android?
You would use a mixture of
DOMApplicationCacheand html5 web storage.DOMApplicationCacheis for storing files, like images andJSfiles. Info can be found hereweb storage, in form of
LocalStorageandSessionStorage, is for storing key/value pairs. That is pure data. There is alsoWebSQLthat is likeSQLite.info on
LocalStorageand session storage hereNote that there are file-size limits, which vary on
AndroidandiOSdevices.