what is manifest.json code example
Example 1: manifest for pwa
{ "short_name": "WAM", "name": "Web App Manifest", "theme_color": "#eb5252", "background_color": "#000000", "display": "fullscreen", "Scope": "/", "orientation": "portrait", "icons": [ { "src": "images/android/android-launchericon-48-48.png", "type": "image/png", "sizes": "48x48" }, { "src": "images/android/android-launchericon-96-96.png", "type": "image/png", "sizes": "96x96" }, { "src": "images/android/android-launchericon-192-192.png", "type": "image/png", "sizes": "192x192" } ], "start_url": "index.html?utm_source=homescreen"}
Example 2: manifest.json basic structure
//this is the basic structure of the manifest.json of browser extensions
{
"name":"demo",
"version":"1.1",
"manifest_version":2,
"description":"a demo extesion for learning purpose",
"browser_action":{
"default_title":"a demo title",
"default_popup":"popup.html"
},
"permissions": ["http://*", "https://*" ]
}
Example 3: manifest.json
# manifest.json in your react project inside public folder
This provides application metadata for Progressive Web Apps. For
example, the file allows installation of your application on a mobile phone’s home
screen, similar to native apps. It contains the app name, icons, theme colors, and other
data needed to make your app installable.