Skip to content

Lesson 7 of 9 · 23m

Installability, Manifests, and Launch UX

Make installation credible with correct manifest metadata, launch behavior, display modes, iconography, and update continuity.

Users do not install a PWA because it technically meets criteria. They install it because it looks like a real product at the exact moment the platform offers installation. The manifest is easy to generate and hard to get right. The difference is launch continuity: correct icon, correct name, correct start URL, correct theme color, no login loop, no dead offline first screen, and no mystery browser chrome.

The manifest is a contract

{
  "name": "Fieldnotes",
  "short_name": "Fieldnotes",
  "id": "/",
  "start_url": "/?source=pwa",
  "scope": "/",
  "display": "standalone",
  "background_color": "#101418",
  "theme_color": "#101418",
  "icons": [
    {"src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png"},
    {"src": "/icons/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable"}
  ]
}

Serve it as manifest.webmanifest and reference it with <link rel="manifest" href="/manifest.webmanifest">. Do not treat id as decoration. It stabilizes application identity when start URLs change.

Icons and display modes are user-visible engineering

Android launchers crop icons aggressively. Design maskable icons with safe padding, or your centered logo becomes a corner artifact. Test light and dark launcher backgrounds. standalone is the normal app-like mode; minimal-ui exposes more browser controls; fullscreen is inappropriate for most productivity applications. Test authentication redirects installed, not only in a browser tab.

start_url is product design

Use a stable launch target such as /?source=pwa. The query parameter helps distinguish installed launches in analytics. More importantly, / must resolve sensibly. If logged in, go to the workspace. If logged out, show a fast local splash and route to login. Never install a shell whose first render waits helplessly for an unreachable network request.

Capture install intent honestly

Chromium exposes beforeinstallprompt when the browser considers the app installable:

let deferredPrompt;
window.addEventListener('beforeinstallprompt', (event) => {
  event.preventDefault();
  deferredPrompt = event;
  showInstallButton();
});
async function promptInstall() {
  if (!deferredPrompt) return;
  deferredPrompt.prompt();
  console.log((await deferredPrompt.userChoice).outcome);
  deferredPrompt = null;
}

Do not nag on first pageview. Prompt after the user has seen enough value to understand why installation helps. On iOS there is no equivalent prompt API; users must use Share, then Add to Home Screen. Respect the platform instead of faking a native install button.

Installed launch quality is a release checklist

Open the installed app cold. Rotate the device. Kill connectivity and launch. Log out and log in. Receive a deep link. Update the app while it is open. These are not edge cases; they are the installed-user experience.

Field notes

  • Chromium installability checks change over time; verify current browser behavior rather than trusting old posts.
  • prefer_related_applications is usually wrong when the web product is the primary product.
  • Keep theme_color synchronized with actual first paint. A white flash in a dark app feels cheap.
  • Changing scope can strand existing deep links outside the installed experience.
  • Broken manifest shortcuts are worse than no shortcuts.

Was this lesson helpful?

Sign in to rate