views:

368

answers:

4

Hi all,

Sorry if this is a noob question, I searched quite a bit and couldn't find an answer.

I'm developing a html5 app that relies on sqlite for local storage.

I'd like for it to appear as an app icon on the iPhone/Android screen, what's the best way to do this? Ie can I write some sort of "wrapper" app to achieve it?

Thanks!

A: 

I think you have to develop a "launcher" app that will just invoke the browser and send the user to your web application.

Strelok
+1  A: 

PhoneGap is an open source wrapper for local web apps that runs on several mobile platforms. There is no reason you could not use it with hosted web pages as well.

Apple would probably reject something they deemed equivalent to a web bookmark.

drawnonward
+2  A: 

No need for PhoneGap or a launcher on the iPhone.

Per Apple:

<link rel="apple-touch-icon" href="/custom_icon.png"/>

Documentation and more fun options you can add to your web app: http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html

ceejayoz
Just to expand, users have to go to your app in Safari, and bookmark it to their home screen for this to work. But, assuming they do that, it works a treat. (On the iPhone: no idea if Android has a similar feature.)
Paul D. Waite
Thanks mate that's what'll do for sure!
holografix
A: 

I think in Android you would have to develop a wrapper application that shows a webview for your webapp.

Janusz