What is a Web App Manifest?
A manifest file is a JSON document that contains essential information about a web application. It enables installability, defines icons, start URLs, and other meta-information crucial for PWAs.
{
"name": "Web App",
"short_name": "WebApp",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#000000",
"icons": [
{
"src": "icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
Key Concepts
- Installable Experience: Allows users to "install" web apps on Android home screen
- PWA Compatibility: Required for Progressive Web Apps to function properly
- App Shell: Defines the base UI of your application