Adding an Icon and Startup
As mentioned previously, there are two header specific tags that you can implement in order to help make your web application look and feel even more like it was downloaded straight from the App Store. All of these cool features will be shown once a user has saved your web page to their iDevice’s home screen(to do this, pretend you are about to bookmark your web page in Safari, but instead press “Add to Home Screen”). By doing this, you can get a nifty little icon and even a startup image integrated into your application.
If you need a refresher, the two tags were
<link rel="apple-touch-icon" href="icon.png" /> <link rel="apple-touch-startup-image" href="startup.png" />
Thankfully enough, both tags are pretty self explanatory. The first one,
<link rel="apple-touch-icon" href="icon.png" />
will help establish the icon that will be displayed when you save your web page to your home screen. This icon needs to be 57×57 pixels and of a .png or .jpg format. One neat fact is that if you don’t have any icons specified using the link element, then your website’s root directory is actually searched for files with the prefixes in the following order to find an icon to use:
However, it’s probably better to just set your desired link source with either a general naming for the file(such as icon.png), or just one file you always plan to stick with(maybe along the lines of cutekitty.png? haha).
The second tag:
<link rel="apple-touch-startup-image" href="startup.png" />
will specify a startup splash screen image to be displayed when your web application is ever opened from the home screen. This image, also either .png or .jpg format, needs to be 320×460 pixels in order to work. A common misconception is that since the screen for an iPhone or iPod Touch is 320×480 pixels, you will need a startup image of that size, but the reason we are given 20 pixels less on the vertical side of things is to account for the status bar up top that includes our signal strength, time, and battery life.
Get creative! Try and design something that will make your web application look genuine. Although you can’t really have a loading bar on your startup screen, you can always try to add a little “loading…please wait” type text, or whatever you come up with to make the user experience all the better. Apple is even nice and automatically adds those nice smooth curved edges to your icon, and gives it a glossy look! (So that people like me who can barely use Photoshop can feel better about their icon.)