3 ms·
Thanks for sharing. If anyone else hasn't made an HTML5 iPhone app or any web app for that matter before and got lost at this part: "Then, next step is to ser
by jamesbressi 17y ago
Thanks for sharing.
If anyone else hasn't made an HTML5 iPhone app or any web app for that matter before and got lost at this part:
"Then, next step is to server it from an actual webserver that can set the proper settings on the cache.manifest"
then maybe I'm not alone? I'm assuming I just read it wrong and it means you can use the same webserver you are using to host your blog, website, etc.?
And then, I was curious how you get the icon on the iPhone home screen which I found the answer here after a quick goog search: http://italkmagazine.com/how-use-iphone-itouch-web-app http://italkmagazine.com/how-use-iphone-itouch-web-app
(edit) I do have one more question to add for all you crazy iPhone app and maybe Palm app developers out there: 1. Is there an straight-forward way to do this method and then use iPhone developer apps to bring it in and export it to then distribute via iTunes App Store? 2. Same question about Palm.
- eob 17y agoThe HTML5 Spec actually has a nice explanation of how to do the manifest. You can find it here: http://bit.ly/aLbKP0 http://bit.ly/aLbKP0 I wrote a blog post a while back that talks about how browsers handle the manifest files. Forgive the shameless self-promotion, but it might be interesting background reading: http://bit.ly/9WhsO8 http://bit.ly/9WhsO8 Basically, the manifest file is just a special text file that stores a list of the things you want the client to cache. This is the feature of HTML5 that enables offline access to web resources. Think of it as sort of a robots.txt for caching purposes.
- joshfinnie 17y agoI am sorry, but please no URL shorteners. http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#a-sample-manifest http://www.whatwg.org/specs/web-apps/current-work/multipage/... http://edwardbenson.com/how-safari-and-firefox-handle-html-5-manifest http://edwardbenson.com/how-safari-and-firefox-handle-html-5...
- eob 17y agoGiven your comment, what a smile it brought to my face when I read your HN profile and learned you created a URL shortening service of sorts :) Apologies if I breached HN Etiquette. I'll post full URLs in the future.
- Terretta 17y agoNeeds to be a web server you have enough control of to set caching headers for the files in question. If you have enough control of the web server hosting your site, blog, etc., that's fine. For iPhone it's dead simple to turn an HTML5 app into a native app to get into the app store (see Bank of America's banking app which is HTML versus Citibank's app which is native). There are even kits to help with that: http://www.tuaw.com/2009/05/27/nimblekit-native-iphone-apps-with-html-and-javascript/ http://www.tuaw.com/2009/05/27/nimblekit-native-iphone-apps-... The point of an HTML5 app is that (a) you can use DHTML+JS to develop it, and (b) you can bypass the app store to deliver it.