Working with manifest files
A manifest file provides information about an app in JSON format. It is usually in the root folder of an application. The following code snippet shows how to add a manifest file named manifest.json
to the index.html
file:
<link href="manifest.json" rel="manifest" />
Here is a sample manifest file that includes many possible fields:
{ Â Â "dir": "ltr", Â Â "lang": "en", Â Â "name": " 5-Day Weather Forecast", Â Â "short_name": "Weather", Â Â "scope": "/", Â Â "display": "standalone", Â Â "start_url": "./", Â Â "background_color": "transparent", Â Â "theme_color": "transparent", Â Â "description": "This is a 5-day weather forecast.", Â Â "...