Customize icon for “Add to home screen”

I want to specify the icon that shows in the home screen. How can i do that?

You can use <link rel="apple-touch-icon" sizes="128x128" href="niceicon.png"> (yes, even for Android device).

Please check iOS document for detail information on Apple devices. Please note you can even define icon for the entire website.

Please check Android document for detail information on Android devices. If <link rel="apple-touch-icon" sizes="128x128" href="niceicon.png"> does not work, you can try <link rel="icon" sizes="192x192" href="nice-highres.png">, which is the recommended method in Android.

Are there any alternatives that simulate this default option in web browsers?

You can check http://cubiq.org/add-to-home-screen for an alternative. “add-to-home-screen” will show an overlaying message encouraging user to add the web app to the homescreen.

Note: Thanks to adam0404’s comment, cubiq.org link is broken now. Fortunately, the “add-to-home-screen” library was uploaded to GitHub, please check https://github.com/cubiq/add-to-homescreen

Leave a Comment