all — for all the media types below
braille — for braille tactile feedback devices
embossed — for paged braille printers
handheld — for handheld devices like mobile phones
print — for printed material
projection — for projected presentations
screen — for color computer screens
speech — for speech synthesizers
tty — for teletypes, terminals, and other devices with limited display capabilities
tv — for televisions and television like devices
IOS
76 × 76 (iPad non-retina e.g iPad2)
120 × 120 (iPhone @2x)
152 × 152 (iPad 3+ @2x)
Android
48 × 48 (mdpi - 160dpi)
72 × 72 (hdpi - 240dpi)
96 × 96 (xhdpi - 320dpi)
144 × 144 (xxhdpi - 490dpi)
192 × 192 (xxxhdpi - 640dpi)
512 × 512 (Google Play store)
Both use .pngs
IOS
Android
You can add app icons by adding links in the <head> of your HTML. You will need to add a link for each icon.
<link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png">
<link href="http://www.yoursite.com/apple-touch-icon.png" rel="apple-touch-icon" /> <link href="http://www.yoursite.com/apple-touch-icon-76x76.png" rel="apple-touch-icon" sizes="76x76" /> <link href="http://www.yoursite.com/apple-touch-icon-120x120.png" rel="apple-touch-icon" sizes="120x120" /> <link href="http://www.yoursite.com/apple-touch-icon-152x152.png" rel="apple-touch-icon" sizes="152x152" /> <link href="http://www.yoursite.com/apple-touch-icon-180x180.png" rel="apple-touch-icon" sizes="180x180" />
<link href="http://www.yoursite.com/icon-hires.png" rel="icon" sizes="192x192" /> <link href="http://www.yoursite.com/icon-normal.png" rel="icon" sizes="128x128" />
You can add a home screen notification popup component by adding a bit of javascript
>Matteo Spinnelli's "Add to home screen" script is one of the most popular scripts and is easy to use.
<head>
<title>Add To Home</title>
...
<link rel="stylesheet" type="text/css" href="../../style/addtohomescreen.css">
<script src="../../src/addtohomescreen.js"></script>
<script>
addToHomescreen();
</script>
</head>
On most mobile devices, we're designing for touch which means:
We want to place the most used UI elements (such as navigation) in places where they can easily be assessible
We also want to make sure that touch targets are large enough for finger taps
Optimal touch target size is
We also want to make sure that touch targets have ample white space around them so users don't accidentally touch one target, when they meant to tap another.
Plenty of white space!!!
Some things to think about:
Feature detection library
Built into Foundation
The jQuery library allows you to detect for specific devices
Lightweight PHP script that detects mobile and browsers (in general)