Debug Installability
Use this flow when the install prompt does not show or the installed app opens incorrectly.
Walkthrough
- Open the production or localhost URL.
- Open Chrome DevTools, Application, Manifest.
- Confirm the manifest URL loads.
- Fix missing
name,short_name,start_url,scope,display, or icons. - Check that icons load and have correct sizes.
- Confirm
prefer_related_applicationsis not blocking browser prompt behavior. - Check whether the app is already installed.
- Try manual browser menu install.
- If using
beforeinstallprompt, confirm the event is supported and not consumed too early. - Install, launch, and confirm
start_urlstays withinscope.
Common Broken Manifest
{
"name": "Ledger",
"start_url": "/app/start",
"scope": "/dashboard",
"display": "browser",
"icons": []
}
Problems:
start_urlis outsidescope.displayis not app-like.- No usable icons.
- No stable
id. - Install UI will be poor even if some browser allows manual install.
Fixed Shape
{
"id": "/",
"name": "Ledger",
"short_name": "Ledger",
"start_url": "/",
"scope": "/",
"display": "standalone",
"icons": [
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }
]
}