views:

372

answers:

3

By Web Application I mean a web site targeted at Safari on the iPhone that can run "off-line" (by using a cache manifest file, JavaScript database, running full screen from an icon on the home screen.)

The user experience as a Web Application is fine once it's installed, so there is no need for it to be native, and potentially, an app delivered in this way could run on other platforms (mobile and PC browsers.) I'm aware that there are many hardware/API features that can't be accessed in this manner, but that is not a problem.

The App Store provides the possibility of selling the app as well as a central catalog for users to find it. A mobile app delivered over the internet without those advantages faces an uphill battle.

Additionally, I would like to be able to leverage an existing HTML/JavaScript/CSS code base (and skills) rather than porting to a new language etc. Not to mention not requiring an OSX machine to develop on.

I haven't seen anything on the Apple site mentioning this, they are focusing on "native" Objective C/Cocoa apps. One option could be to develop a native iPhone app that provided a webkit surface for the HTML/JavaScript to run on.

+1  A: 

No only native apps can be deployed through the AppStore, I would look into the later option though. i.e. Develop a native app that provided a webkit surface. I think the trickiest bit would be exposing lower level iPhone functionality to the javascript engine.

Kane Wallmann
+1  A: 

Is it possible to distribute an iPhone Web Application through the App Store?

To my knowledge, no it is not. Theoretically, you could use a UIWebView to allow the user to experience your iphone-webapp, but if you're a serious developer, the $1000 for a used MacBook and the $100 for an iPhone License are well worth it.

From a different perspective, the iPhone does allow custom links to your website by "Add To Homescreen". This gives the user nearly the same experience as with a native app.

From another perspective, you can achieve offline capability in a similar way to what Google does for Gmail/Reader/etc with its client-side cache/HTML 5.0 stuff.

MonoTouch - This technology has been getting tossed around SO recently, so you might want to check it out (non-OSX developement).

TahoeWolverine
The UIWebView control sounds like what I was thinking off in my last paragraph. A MonoTouch app exposing it might be a suitable option.
Tom
I might not have been clear, but I tried to mention that the web app would run via the "Add to Homescreen" and use the HTML5 javascript database. That all works fine.
Tom
Cost is not the issue. Existing code/skills/portability to other platforms are lost by going native.
Tom
A: 

Try PhoneGap, also checkout the Building iPhone Apps with HTML, CSS, and JavaScript book.

Tom