I'm building an app that requires downloading a lot of html5 content. Essentially it works similar to the magazine apps you see for iPad, except instead of using images, it will use UIWebViews and HTML.
My question is what would be the best method for storing this. I was thinking either a downloaded zip file that gets unzipped into the bundle and contains the html files, images, css, etc. or putting all the html in the database and just having the images, css, videos, etc. downloaded and put in the bundle.
Some considerations:
Many links will be local to the device, but some will be to outside sites.
I will need to be able to do full text search on all html content.
The size of the content will vary.
On a side note, I would love to be pointed in the right direction as far as setting up paging with UIWebViews. Potentially a lot of UIWebViews.
Thanks, Brandon
This is used to save logged in state of the user within an application, so that the app can fetch this data even when user access the application at some other time. In some of the iOS apps this method is used to save user's confidential information like access token.
This question can be pretty easily answered by looking at the first and best HTML5 overview book out right now... And the best part it is published under the CC license.
http://diveintohtml5.ep.io/offline.html <- is a whole chapter on cacheing webapps and is a great jumping off point for your application.
It's not difficult, and it's cutting edge, what's cooler than that.
If you are really serious about getting this application to work offline well then it really shouldn't be summarized beyond the link.
Although I do have more resources that were at the bottom of that chapter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With