Add Manifest And Icons
Use a stable manifest before you test install behavior.
Steps
- Create
public/manifest.webmanifest. - Add stable
id,start_url, andscope. - Add
name,short_name, anddescription. - Set
displaytostandaloneunless you have a reason not to. - Add
theme_colorandbackground_color. - Generate 192, 512, and maskable icons.
- Add screenshots if install UI or store packaging matters.
- Link the manifest from HTML.
- Validate in DevTools Application, Manifest.
Icon Rules
| Icon | Why |
|---|---|
| 192x192 | Common install and launcher size |
| 512x512 | Higher-resolution install and store surfaces |
| maskable 512x512 | Adaptive icons on Android and other launchers |
| monochrome or shortcuts icons | Optional launcher and shortcut enhancements |
Validation Checklist
- Manifest fetches with a valid content type.
- All icon URLs resolve with correct dimensions.
- Maskable icon has safe padding.
start_urlloads without auth loops.scopeincludes the app routes but excludes unrelated site pages.idis stable and not derived from a temporary URL.