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.
nokia May 24, 2012 19:51:46
Wow, superb weblog structure! How long have you ever been running a blog for? you made running a blog glance easy. The total look of your site is magnificent, as well as the content material!
business startup coach May 26, 2012 18:20:22
It’s tips like that, encourages people to keep returning to a fantastic resource like this site.
jimmy June 24, 2012 22:51:54
Awesome!! Completed in less than 10 minutes- with basic understanding of programming! Created the image files in photoshop, and added code to the the header.php file in the wordpress dashboard editor.
Thanks!!
John O August 7, 2012 11:18:13
Jimmy can u explain what u meant by added code to the header.php file.
And give me an example.
Thanks in Advance
John
davin March 27, 2013 07:39:06
hey jimmy i wanna have your help.
Best Free Apps HQ July 17, 2012 13:56:00
I just came across your site and i am really impressed with the detail and your explanation of how to transform your site into an app for people to readily use. Thanks heaps for the info you have inspired me!
Ross Shannon July 31, 2012 12:25:49
Re: “any new link will be open in new browser tab so you lost these settings”, you can write a little bit of JavaScript that will attach onClick event handlers to all links, and make them change the page’s location using window.location instead of through its normal procedure. That will allow you to stay in the standalone “app”, instead of switching to Mobile Safari.
John O August 7, 2012 11:16:27
Every time I click a link in my web app it opens in new browser tab so i lose my settings like Ross Shannon describes.
Can anyone explain to me exactly in detail how Ross does it I dont know JavaScript but willing to learn this code and I dont understand that it will attch onClick event handlers. I want my web apps to stay in the standalone app instead of switching to Mobile Safari.
Please email me the code or a link that explains this.
Thanks Ross & Luscarpa and anyone who can & will help!
Elliot August 30, 2012 09:56:56
Any ideas on this?
Max September 26, 2012 18:39:10
I’m also interested in solving this problem.
Drue October 1, 2012 04:14:20
Add this code to open links within the web app.
Within the tag:
function OpenLink(theLink){
window.location.href = theLink.href;
}
This is the anchor(link) syntax you need to use.
Link
Drue October 1, 2012 04:15:57
That should be within the tag. This site executed my HTML tag.
Drue October 1, 2012 04:16:56
tag. It should show now.
Drue October 1, 2012 04:18:34
It’s still not showing. It’s the header tag that you should put the first code in. The second is an on click function and that goes after your URL.
Drue October 1, 2012 04:21:09
This is getting frustrating. It keeps on executing the HTML. On click will go right after your href attribute.
onclick=”OpenLink(this); return false” >Link
Holly October 15, 2012 08:00:05
it sound work, but not that 3G networks can smtmoiees be disrupted and not fully handle VoIP calls (some would say intentionally). This naturally affects Viber and damages its quality, and unfortunately there is nothing much we (Viber) can do about it it’s in the hands of the cellular companies.
Sumeet August 11, 2012 07:14:49
We are Iphone & Ipad game development company. We are experts in IOS game programming. Our iPhone game developers use Unity 3D, Flash, Javascript, Cocos 2D for development.
http://logicsimplified.com/games/iphone-ipad-game-developers/
:) August 22, 2012 08:36:36
Error establishing a database connection
Kss August 22, 2012 13:46:47
Great info … Thanks … But we have 1 problem ;()
Our ‘webb app’ requires a login from the user and that works fine using ‘standard safari’ i.e. the user logs in the first time and if he does something else in his iPhone but comes back by klicking Safari (withoth having closed it) the system doesn’t ask him to log in again.
BUT when using the suggestions on this page the end result is that the user has to log in EACH AND EVERY TIME he clicks the webb-app icon ;(
Any suggestions on how to enable these Great appification settings withouth forsing a re-login ?!?
eblet September 15, 2012 12:21:07
If I talk about camera then there may be some disappointment among large fan base who were expecting camera with 12 megapixels because this one is equipped with 8 MP with f/24 aperture, panorama mode, hybrid IR filter, five element lens, and also backside illumination. Data transfer rate is just excellent because of LTE 4G functionality. iPhone 5
Sebastian October 13, 2012 12:42:27
I wonder why the stfreatheply treatment towards other phones . Symbian S60 comes to mind. The answer to that question can be readily summed up in my immediate response upon reading your comment: S60? Never heard of it. And no, that’s not sarcasm. Whatever the sales figures for Symbian phones, they’re apparently not high _enough_ to inspire coders to say I’ll do a WordPress program for that .If you’re a coder, feel free.
Raj September 16, 2012 05:40:25
I must express apeircpation to this writer just for bailing me out of this incident. Just after exploring throughout the world-wide-web and finding opinions which are not beneficial, I thought my life was done. Being alive devoid of the strategies to the difficulties you’ve solved as a result of your main post is a critical case, and ones which may have badly damaged my entire career if I hadn’t discovered the website. Your personal capability and kindness in controlling all areas was crucial. I don’t know what I would’ve done if I hadn’t come across such a subject like this. I’m able to at this time look forward to my future. Thank you so much for the impressive and results-oriented help. I won’t hesitate to suggest the sites to anybody who should get care about this topic.
Jambajamts October 13, 2012 20:31:40
Why?I can access the admin area just fine on my iPod arleady, and when I do so I have access to all the admin functions. I can set up users, write posts edit posts (a function that’s conspicuously absent from the app), edit pages that have arleady been created (I’m told that’s not possible on the app), use plugins like the All-In-One SEO plugin, etc.What’s the purpose of this app?
Layla November 17, 2012 07:06:17
yea, just go to the app store on itunes and u can pusarche or get free apps . then when you sync your iphone to itunes they will be there!hope that helps. email-if u have questions :]
Sofiya October 15, 2012 05:15:53
-Viber should work fine, tuhgoh it doesn’t *officially* support iPods and iPads. You don’t need to invite contacts per se, you simply need to add to Viber’s contact list a phone number of a friend who you know has Viber, then it will be recognized as a Viber user, and you’ll be able to call them.
Custom iPhone Cases September 28, 2012 01:13:14
Hey great article, apps are where it’s at right now.
On a side note, try making your own cool design for your iPhone case with our flash app… We just launched this new site and are looking into iPhone apps to replicate the design application on here, but we’re not sure if anyone would use it on iPhone – maybe just iPad. What do you think? Is it worth creating an iOS App for this “create your own design” web app?
The app is here at: http://www.case-monkey.com
Drue October 1, 2012 04:12:28
Add this code to open links within the web app.
Within the tag:
function OpenLink(theLink){
window.location.href = theLink.href;
}
This is the anchor(link) syntax you need to use.
Link
Gephone Casey October 15, 2012 05:09:42
Never knew this.
Gephone Casey, from http://aniphonecase.com
Asier November 16, 2012 00:06:39
If you have a mac you make different amulbs in iPhoto then in iTunes choose which amulbs you want to sync. If you have a PC you just make a folder then in that folder create all the different folders you want then just sync that whole folder (if that makes sense, lol)
Sarah Nicole January 23, 2013 15:58:57
We needed such a icon for our website and customized our iPhone with it.
Short and sweet. Thank you!
Sarah
http://iphone-unlocker-pro.comt
Dan John March 5, 2013 19:41:37
We’re currently having an iOS app developed for us by a local company here in Canada called http://www.clearbridgemobile.com and I’m definitely sending this article over to them.
PC Pandora March 29, 2013 20:30:27
I learn something new everyday. I never even heard about this before. I want love to find out more about this matter. Where do you suggest I search for more information about this matter? I Thank you in advance. PC Pandora
benz May 6, 2013 13:21:17
Great hacks but I also do not agree with point #5. I for one like to read comments from the beginning of the conversation.
Social Bookmark