📦 Media File Download (563 KB)
Assume now we have a Fake Conference webpage. We want to allow our user to install the web on their home screen, so that they can access the information right from their home screen on the mobile phone.
You can find the written HTML, CSS and JavaScript code in the following link:
http://codepen.io/makzan/pen/kkJPzR
Try to use <meta>
tag and manifest JSON file to declare the app icon for the home screen.
We also want the home screen’s app title to be “FakeCon”.
Apple’s guide on meta tag:
Web Standard’s Manifest:
https://developer.mozilla.org/en-US/docs/Web/Manifest
And you can define the home screen’s title by the following <meta>
tag.
<meta name="apple-mobile-web-app-title" content="FakeCon">
And here is my example manifest JSON.
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/manifest.json
Actually I have uploaded the app icons and you can use them directly.
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/Icon-App-60x60%401x.png
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/Icon-App-76x76%401x.png
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/Icon-App-60x60%402x.png
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/Icon-App-76x76%402x.png
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/FakeIcon-48.png
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/FakeIcon-72.png
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/FakeIcon-96.png
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/FakeIcon-144.png
https://s3-us-west-2.amazonaws.com/s.cdpn.io/15649/FakeIcon-192.png