最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - iPhone web apps running as native apps - Stack Overflow

programmeradmin0浏览0评论

The browser on the iPhone is capable of using advanced web technologies introduced in HTML5. One of these is the app cache that allows web pages to run on the client, from the cache, without a connection to the internet. Together with Local Storage you can also save data permanently "in" the page.

My question is, would it then be possible to make a website that when visited and set as a web clip (bookmark on the home screen), could be accessed again, at any moment. Using HTML5, Javascript and css, you can make some very good apps and at the same time avoid the pricey developer fee, the harsh app approval and the single platform development platform?

Or am I just dreaming?

The browser on the iPhone is capable of using advanced web technologies introduced in HTML5. One of these is the app cache that allows web pages to run on the client, from the cache, without a connection to the internet. Together with Local Storage you can also save data permanently "in" the page.

My question is, would it then be possible to make a website that when visited and set as a web clip (bookmark on the home screen), could be accessed again, at any moment. Using HTML5, Javascript and css, you can make some very good apps and at the same time avoid the pricey developer fee, the harsh app approval and the single platform development platform?

Or am I just dreaming?

Share Improve this question edited Feb 1, 2013 at 15:37 Pedro Rolo 30k13 gold badges61 silver badges95 bronze badges asked Jul 16, 2009 at 20:28 Henrik HansenHenrik Hansen 2,1901 gold badge14 silver badges19 bronze badges 5
  • 5 $99 is a pricey developer fee? – KevMo Commented Jul 16, 2009 at 20:30
  • 3 $99 is a steal. Considering that Visual Studio costs hundreds of dollars, $99 is an amazing price to develop for the iPhone. – Rob Commented Jul 16, 2009 at 20:30
  • 2 Considering you don't earn any money, is a student in Denmark and doesn't intend to sell apps, then yes, $99 can feel like a lot. Of course, I could charge for the apps, but I'm talking about making an application for personal use + a few friends. – Henrik Hansen Commented Jul 16, 2009 at 20:34
  • I make small apps for myself and install them on my phone sometimes. You don't really need the dev license unless you want to distribute it in the store, really. And honestly, pool together your friends and have them contribute $10 and get the $99 version. What is that, one pizza each? ;) – typeoneerror Commented Jul 16, 2009 at 20:43
  • 2 You'll also need a Mac. Neither me nor my friends are in for spending a lot of money on a Mac in order to make a few of apps. Not that I don't want a Mac. – Henrik Hansen Commented Jul 17, 2009 at 19:36
Add a ment  | 

4 Answers 4

Reset to default 6

Yes, what you describe is certainly possible. You can take advantage of Apple's support for the HTML5 app cache by creating a manifest file indicating which resources are to be cached, and specifying that file from within the HTML page of your web app. Details on how to do this are in Apple's documentation.

Update: I have tried this on my own web app, and it works. You have to make sure that the manifest file is served as type text/cache-manifest, like it says in the documentation. Also, I don't know how long Safari is guaranteed to keep the files cached. I have found that manually clearing Safari's cache will clear the cached web app files as well, even for a web app link saved on the device's home screen.

You may want to take a look at mobione - http://www.genuitec./mobile/

By using the following method we've actually made a android and iphone app wrapped in phone gap. It's ONLY a web app but you wouldn't know it ;)

http://www.kintek..au/web-design-blog/developing-for-the-iphone-and-ipad-by-runing-os-x-10-6-snow-leopard-on-a-pc/

I have been building a native html app with iui and Iweb up scripts and installer called Sentenza, I am doing the app to test Sentenza for a review.

But all said there is still lack of easy framworks for a user I am sure it be easy to make a cental js script that as default actions like the button mands for a new page

I think this could be possable to redo the html 5 seen and there is no need for cashing as Sentenza far as I know already enabls this long as your use a ajax call and not a index.html call it works

and its simple I have (a lalala ="Pagename.page" ) or if the page is just small then i can do a ancker mand thats also contactlled by JS and css as far as i know

body
div id="home" title="home" selected="true"


div id="link1" title="New Page"

I look like a new page

/div

I am a noob when it es to all this but if we making these to work and look like native app then I feel this kinda things should be stream lined, I not sure how we could do this but I am sure we could make a simple mainframe framwork that never needs to be opened or edited for the end user they just include the meta and css tags and off they go if your intested in helping me do something like this please email webmaster (at) mokodev (Dot) info I want to make this framework free but also based on the already known IUI and IWeb frameworks, the mainframe would work on any OS as it be just flat css and js files but if we can get it to work i can also try make a windows IU template builder this would enable people get started.

发布评论

评论列表(0)

  1. 暂无评论