Make your website an iPhone web application
These are a lot of tips to make your website an iPhone app so users can save it on their Home screens and access to your site faster.
Specifying a Webpage Icon for iPhone Home
We have two ways to design a custom icon that users can display on their Home screens using the Web Clip feature:
- a simple image where iPhone 1.1.3 and later automatically adds some visual effects so that it coordinates with the built-in icons. Specifically, iPhone 1.1.3 adds:
- rounded corners
- drop shadow
- reflective shine
This is the image for Luscarpa.com:

and this is how it is on iphone home screen:

- an image precomposed, to this image iPhone doesn’t add effects.
This is the image precomposed for Luscarpa.com:

and this is how it is on iphone home screen:

How we can provide this image? There are two ways:
- place an icon file in PNG format in the root document folder called
apple-touch-icon.pngorapple-touch-icon-precomposed.png. With this method you specify an icon for the entire website (every page on the website), - add a link element to the webpage, as in:
<link rel="apple-touch-icon" href="/custom_icon.png"/>
or
<link rel="apple-touch-icon-precomposed" href="/custom_icon_precomposed.png"/>
With this code you specify an icon for a single webpage or replace the website icon with a webpage-specific icon.
Hide Safari Components
Add this line if you want that your web app/website don’t show the safari user interface components:
<meta name="apple-mobile-web-app-capable" content="yes" />
Status Bar Appearance
You can change the Status Bar of web app/website using the following line of code:
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
There are three different colors:
1default
2black
3black-translucent
NOTE: If set to default or black, the web content is displayed below the status bar. If set to black-translucent, the web content is displayed on the entire screen, partially obscured by the status bar.
Specifying a Startup Image
On iPhone OS, similar to native applications, you can specify a startup image that is displayed while your web application/website launches. By default, this image is a screenshot of the web application with the page that the user has visited the last time. If you want customize it, add a link element to the webpage, like this:
<link rel="apple-touch-startup-image" href="/startup.png">
Here an example of my custom startup:

The image must be a png file and his dimensions 320 x 460 pixels in portrait orientation.
NOTE: this option works only if apple-mobile-web-app-capable is set to yes
Standalone Detection
You can develope custom features or effects for your standalone version of site, you can detect it using the boolean var window.navigator.standalone from javascript.
Note & Conclusion
All these tips only works for web pages that have been saved to the home screens and opened from there, if you access to your website using safari you don’t have this customizations. Remember also that any new link will be open in new browser tab so you lost these settings.
Is my opinion that if you develop a strongly ajax-oriented web application, so to avoid the users from stressing clicking and page refresh, allowing them to use just the “first page” , all these settings can be make your app amazing.
This website uses these options, you can test them adding it to your home screen of iPhone/iPod Touch, actually I’m using wordpress so there isn’t a customization to load all site with ajax so you can see the home page like web application, but if you click on a post link you will be redirect to safari.
Tarig Ali September 25, 2011 13:39:24
Hi,
Any program can help me to build a game in iphone direct from starting point not to convert??
Thanks
Farshid September 26, 2011 17:10:08
That was so helpfull. Thanks alot.
marcos October 8, 2011 14:18:14
this is great!
one thing though, when you set the safari bar to be hdden, you loose the print feature, is there a way to control that?
Jennifer M October 13, 2011 20:04:16
Hi! Awesome post – I just have one question – How do you specify a name for the icon other than the Title of the page?
Luscarpa October 14, 2011 06:59:32
The app uses the name of the title of the page, but the users can change it like when they change the name of folders
MobileAdvertisingAPPs.com October 13, 2011 23:50:23
Luca love ur blog – thanks for all u do. Sorry about ur iPhone now u can have a 4GS
I want to know how to use a web app and take advantage of Notification Pop ups. I use another website for my redirects. 1 of my apps is uses some Twitter stuff & I would like a pop up to pop up on my iPhone when 1 of the 3 twitter feeds gets a new tweet. Even when I am not in that APP – BUT just have my iPhone on.
You can view my app at http://www.getvips.com/twitterapp.
Also for everyones info when we post a question will the answer be emailed to us along with being posted to ur blog?
Luscarpa October 14, 2011 07:03:14
At the moment there isn’t a way to use notifications via webapp, notifications request a special code inside the iphone app. Sorry but this is one of the negative points of web apps.
travis October 20, 2011 21:28:10
is there a way to create an actual text link that will do the bookmark ordeal without the user clicking through several screens in order to save the site to their ‘screentop’?
MobileAdvertisingAPPs.com October 23, 2011 05:46:02
Did u get my email for a projects specifications.
John October 24, 2011 17:46:16
Thanks a lot! This tutorial was excellent.
Michael October 27, 2011 01:28:36
Hallo,
ich komme aus deutschland und versuche ein web app zu erstellen,aber mein problem ist das der splashscreen nicht funktioniert.It ist 320×460 und ist eine png datei.
folgender code ist in eingebaut
Hockey Frogs e.V.
@import “iphonenav.css”;
But is doesn´t work,can you help me pls ??
Davide November 12, 2011 22:38:17
Hallo Michael,
splashscreen funktioniert nur wenn die webapp in der Startseite ist. Hast du versucht das?
tarig November 8, 2011 16:30:26
Thanks we use the same
vinux November 11, 2011 06:55:42
is there a way to create an actual text link that will do the bookmark ordeal without the user clicking through several screens in order to save the site to their ‘screentop’?
leo November 14, 2011 08:10:24
very good! thanks.
Justin G November 21, 2011 18:03:51
Is there anyway to have any kind of link to allow to load a different page in the web app view? Without it going into safari?
Tarig November 21, 2011 22:13:02
Hi,
Any program can help me to build a game in iphone direct from starting point not to convert??
Thanks
earl November 25, 2011 01:22:00
i found simple courses on how to make apps from this site its working well for me so far hope it helps
John December 2, 2011 15:47:53
this was very helpfull thanks alot
Lindsey December 2, 2011 18:09:58
I have a question…. what resolution should you use when creating a graphic for an iphone app and/or a mobile site. I had someone ask me to create a graphic that was 240×40 with a ton of text and they are complaining because it’s not clear. My educated guess is that it’s not clear because it’s so tiny. Any suggestions???
Steve Lovelace December 5, 2011 05:40:51
Thank you, Luca! That was surprisingly easy. Even if I’m the only one in the universe who puts my blog on my iPhone Springboard, it still looks a lot better than the thumbnail of the webpage that iOS made for me.
Mark Ransom December 5, 2011 16:36:51
To stop a particular link from opening safari simply add target=”_webapp”
Using this on all your internal links you can make your entire site appear to be working outside of safari. Going a step or 3 further you can design a version of your website geared toward iphones.
If interested search out Jonathan Stark’s “Building iPhone Apps with HTML, CSS, and JavaScript”
iBricklandNet December 21, 2011 09:47:30
Please contact back to me for farther instructions how to apply this software to my website.
Chears
Jessica K. December 27, 2011 08:09:13
I use SwatchPix.com to create Webclips, it’s a simple tool and quick.
karthick January 2, 2012 11:51:02
can i use single license iPhone app key for 5 different domains
Richindesign January 9, 2012 23:23:58
This is a great tutorial i just recently set the wordpress plugin up on my own site and it didnt have theese features
Nicky January 17, 2012 10:54:35
Cool! But you should also know that you can create a web site that will look feel and function exactly like a native iPhone app – a Web-app! I found a good article that describes the process:
http://www.finallyiphone.com/apps-development/
It’s really cool and easy!
Bruno January 31, 2012 19:07:21
Ciao Luca,
very nice walkthrough.
I’m italian but gonna write in english so what we type here could be helpful to everyone.
My website is prestashop based. It’s also hosted on my own unix server. it’s a subfolder in my www.
i’ll explain it better: the main website is voltumna.cjb.net
e-piazza.biz domain is redirected to voltumna.cjb.net/e-piazza
what you see on e-piazza homepage is in voltumna.cjb.net/e-piazza/themes/prestashop/header.tpl
there is also index.tpl but it just as a HOOK Header
i’ve dropped the icon.png (for ipod ipad and iphone4) either in e-piazza folder and in prestashop where header.tpl is. i’ve even used an universal link http://voltumna….png but still no success.
any idea?
seo January 31, 2012 19:58:26
Greetings! I’ve been reading your site for a long time now and finally got the bravery to go ahead and give you a shout out from Austin Texas! Just wanted to mention keep up the good job!