
Progressive Web Apps: The Installable Web, Including iOS
iOS 16.4 (March 2023) shipped Web Push and Badging — the "PWA is dead on iOS" narrative is out of date. The manifest, Service Worker patterns, and the install prompts.
TL;DR: The "PWA is dead on iOS" narrative is out of date. Web Push and Badging shipped on iOS 16.4 in March 2023; installation and offline support work across Chromium, Safari, and Firefox in 2026 (Firefox desktop installation is Windows-only), and the Web App Manifest is read by Chromium, Safari, and Firefox for Android (as of October 2026, MDN browser compatibility data). Background Sync remains Chromium-only and is not Baseline-safe, but the rest of the installable-web stack is broadly available. This guide covers the manifest essentials, the Service Worker cache strategies that remain the standard patterns, the install-prompt patterns across browsers, the operational reality of iOS PWAs, and how the EU Digital Markets Act reshaped third-party browser engines on iOS in 2024.
PWA in 2026 — what is actually shipping
The core of the capability matrix has settled, though entries still change between browser releases. The features below are useful as a quick reference for adoption decisions.
| Capability | Chromium | Safari iOS / iPadOS | Safari macOS | Firefox |
|---|---|---|---|---|
| Installability | ✓ desktop + Android | ✓ (Share sheet → Add to Home Screen) | ✓ (File menu → Add to Dock) | Android: home-screen shortcut that opens in the browser (MDN); Windows desktop since Firefox 143, or 150 for Microsoft Store installs ("Web apps") |
| Web App Manifest | ✓ | ✓ (since 11.3) | ✓ (since 17) | ✓ Android only |
| Service Worker | ✓ | ✓ | ✓ | ✓ |
| Push notifications | ✓ all platforms | ✓ since 16.4 (March 2023, requires installation) | ✓ since 16.0 | ✓ |
| Badging | ✓ desktop (Windows, macOS, ChromeOS); not Android | ✓ since 16.4 (installed web apps) | ✓ since 17 (installed web apps) | ✗ |
| Background Sync | ✓ | ✗ | ✗ | ✗ |
| Periodic Background Sync | ✓ | ✗ | ✗ | ✗ |
| Web Share | ✓ | ✓ | ✓ | ✓ Android only (desktop behind a preference) |
| File System Access | ✓ | ✗ | ✗ | ✗ |
The table reflects browser compatibility data as of October 2026 (MDN: Badging, MDN: Web Share, Firefox web apps on Windows). Service Worker and Web Push (with the iOS caveat) are available in every engine in 2026, and the manifest everywhere except Firefox desktop; installation is available in every engine but with different entry points, and Firefox desktop installation is Windows-only. Badging is not implemented in Firefox. Background Sync and File System Access remain Chromium-only and should be feature-detected before use.
The service-worker programming model itself has been stable. Service workers never had XMLHttpRequest (it is exposed to other workers but not to service workers, per MDN); network access from a worker goes through fetch(). Code that still assumes synchronous or XHR-based requests inside a service worker needs to move to fetch() and the Cache API.
Web App Manifest — the install contract
The manifest declares what the user sees when the app is installed. A minimal viable manifest:
{
"name": "Example App",
"short_name": "Example",
"icons": [
{ "src": "/icons/192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icons/512.png", "sizes": "512x512", "type": "image/png" },
{ "src": "/icons/maskable.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
],
"start_url": "/",
"display": "standalone",
"theme_color": "#1a1a2e",
"background_color": "#ffffff"
}name is the full app name; short_name is the truncated version shown in the launcher and app switcher when space is tight, so keep it short enough to display without truncation on a home screen.
Chromium-based browsers, including Chrome, Edge, and Samsung Internet, require icons to contain a 192px and a 512px icon before they treat the app as installable. A separate 512×512 icon with purpose: "maskable" is recommended — Android's adaptive icons crop icons to varying shapes, and a maskable icon includes a safe inner area that survives the crop. Generate maskable icons with the Maskable.app editor.
start_url is the URL launched when the user opens the installed app. For a SPA, it is usually /; for a multi-page app, it can be a specific entry point.
display controls the app's chrome. standalone (a common choice for installable apps; if display is omitted the default is browser) shows the app without browser chrome, like a native app. minimal-ui keeps a minimal set of navigation controls (typically back, forward, reload). browser shows the app as a regular tab. The new display_override accepts an array fallback chain — ["window-controls-overlay", "standalone"] lets a desktop PWA paint into the title bar area, falling back to standalone on engines that do not support window-controls-overlay.
theme_color and background_color drive the splash screen and the chrome accent. theme_color matches the app's primary brand color; background_color is what shows during the app's loading screen before the first paint.
screenshots, together with description (which Chrome recommends but does not require), feeds Chrome's richer install dialog, which needs at least one screenshot for the device's form factor. categories is metadata used only by app stores and other distribution platforms and is not shown to users in the browser or the installed app. Both members are optional.
Service Worker patterns
The Service Worker lifecycle has three events that matter for the cache.
The install event fires once when the worker is installed. Use it to precache the app shell:
const CACHE_VERSION = 'v1.0.5';
const SHELL_ASSETS = ['/', '/css/main.css', '/js/main.js', '/fonts/inter-var.woff2'];
self.addEventListener('install', (event) => {
event.waitUntil(
caches.open(CACHE_VERSION).then((cache) => cache.addAll(SHELL_ASSETS))
);
});The fetch event fires for every network request the controlled page makes. The cache strategy depends on the resource:
self.addEventListener('fetch', (event) => {
const url = new URL(event.request.url);
// Cache-first for hashed assets (immutable URLs)
if (url.pathname.match(/\.[a-f0-9]{8,}\.(?:js|css|woff2|png|svg)$/)) {
event.respondWith(cacheFirst(event.request));
return;
}
// Network-first for HTML
if (event.request.mode === 'navigate') {
event.respondWith(networkFirst(event.request));
return;
}
// Stale-while-revalidate for API responses
if (url.pathname.startsWith('/api/')) {
event.respondWith(staleWhileRevalidate(event.request));
return;
}
});Three strategies cover most needs. Cache-first is right for assets with hashes in the URL — the URL is immutable, so the cached response is always correct. Network-first is right for HTML — fresh content if the network is available, cached fallback if it is not. Stale-while-revalidate is right for API responses that tolerate brief staleness — return the cached response immediately, fetch in the background to update for next time.
The activate event fires when a new worker takes over from an old one. Use it to clean up old caches:
self.addEventListener('activate', (event) => {
event.waitUntil(
caches.keys().then((keys) =>
Promise.all(keys.filter((k) => k !== CACHE_VERSION).map((k) => caches.delete(k)))
)
);
});Promote an updated worker with skipWaiting() carefully. By default a new worker waits until every page controlled by the old worker is closed; calling skipWaiting() activates it immediately, so already-open pages, still running the old page code, are served by a worker whose expectations may disagree with that code. clients.claim() is a separate step: it makes the active worker take control of open pages that are not yet controlled (typically on first install). The safer update pattern is to leave the new worker waiting until the page shows a "new version available" prompt that the user accepts, then tell the worker to call skipWaiting() (for example via postMessage) and reload the page.
The Workbox library is an opinionated wrapper for these patterns and reduces boilerplate. It is optional; teams that prefer hand-written workers get the same outcome with more code and more control.
Service workers have no direct DOM access and cannot use localStorage (Web Storage) or synchronous XHR. Workers communicate with the page via postMessage; persistent state lives in IndexedDB or in cache APIs. Code that assumes DOM or localStorage access will not work; the migration path is to expose the data through postMessage.
Install prompt — beforeinstallprompt and the user gesture rule
Chromium fires beforeinstallprompt when its installability criteria are met (in Chrome: the app is not already installed, it is served over HTTPS, it has a manifest with the required fields, and it meets a user-engagement heuristic: at least one click or tap and at least 30 seconds viewing the page, at any time; as of October 2026, web.dev). The pattern is to capture the event, store it, and show a custom UI button that calls prompt() on user interaction:
let deferredPrompt;
window.addEventListener('beforeinstallprompt', (event) => {
event.preventDefault();
deferredPrompt = event;
document.querySelector('#install-btn').hidden = false;
});
document.querySelector('#install-btn').addEventListener('click', async () => {
if (!deferredPrompt) return;
deferredPrompt.prompt();
const { outcome } = await deferredPrompt.userChoice;
deferredPrompt = null;
document.querySelector('#install-btn').hidden = true;
});prompt() must be called inside a user-gesture handler — clicking a button is the canonical case. Per MDN, it may only be called once on a given beforeinstallprompt event.
Safari does not fire beforeinstallprompt. Installation on iOS is initiated through the Share sheet's "Add to Home Screen" option; on macOS, through the File menu's "Add to Dock". There is no programmatic prompt and no custom install UI on the page itself; design copy that explains the iOS / macOS install flow separately when the user is on Safari.
On Android, Firefox adds a home-screen shortcut that, per MDN, opens the site in the browser rather than as an installed app. On Windows desktop, Firefox supports installation through "Web apps" since Firefox 143, or since Firefox 150 if Firefox was installed from the Microsoft Store (as of October 2026; not on macOS or Linux). There is no programmatic prompt. The same pattern as Safari — design copy that explains the Firefox install flow separately.
The getInstalledRelatedApps API (Chromium on Android and Windows only) detects whether a related native app is already installed:
if ('getInstalledRelatedApps' in navigator) {
const apps = await navigator.getInstalledRelatedApps();
if (apps.length > 0) {
// user has the related native app — skip the install prompt
}
}Use this to avoid double-prompting users who already installed your native app.
iOS PWA reality in 2026
iOS PWAs work in 2026, with caveats worth understanding.
Installation is Share sheet only. The user opens the page in Safari, taps Share, taps "Add to Home Screen", confirms the name, and the icon appears on the home screen. There is no programmatic prompt; you cannot trigger the install dialog from the page. Design copy that explains the flow when iOS Safari is detected — a banner that says "Tap the Share icon to install" with a small inline icon is a common pattern.
Push notifications require installation to home screen. Push from a regular Safari tab does not work on iOS; push only fires for installed PWAs. In a regular Safari tab on iOS the Notification interface is not even defined, so there is no permission to request.
Notification permission should be requested only after installation. The right pattern is to detect installation via the display-mode: standalone media query, then offer notifications as a feature inside the installed app:
if (window.matchMedia('(display-mode: standalone)').matches) {
// running as installed PWA — notifications are available
}Background Fetch and Background Sync are not available on iOS. Design data refresh around foreground entry — when the user opens the app, fetch fresh data and update the UI. Aggressive background sync patterns from native apps do not translate.
Storage limits: Safari evicts under storage pressure. Cache and IndexedDB data can disappear without warning when the device is low on space. Design for graceful re-fetch rather than relying on indefinite cache survival; an app that depends on a cached document surviving for a long time will fail in the field on storage-constrained devices.
Since March 2024 (iOS 17.4), Apple's compliance with the EU Digital Markets Act has allowed non-WebKit browser engines on iOS for users in the EU. Chromium and Gecko-based browsers can ship their own engines on iOS for EU users; PWA capabilities may diverge slightly between WebKit and other engines on iOS in EU markets. In iOS 26.2 and later, users in Japan can also get engines other than WebKit in dedicated browser apps, but in-app browsing with another engine is limited to apps from browser engine stewards, a narrower option than in the EU (Apple). Outside the EU and Japan, iOS browsers must use WebKit, so WebKit remains the engine to design for on iOS. The story is worth tracking; the immediate engineering implication is small.
Why PWA matters for global audiences
The economic case for PWAs can be stronger outside markets where Apple and Google's app stores are the only practical distribution channels.
Distribution friction is much lower. No app store review, no platform fees, no rebuild for each OS; the remaining friction is the install step itself, which differs by browser and is manual on Safari and Firefox. Updates deploy through the same web release process; no app-store re-review delay. For consumer-facing products, shipping a fix on your own release schedule, rather than waiting for a store review (Apple reports most submissions are reviewed within 24 to 48 hours, as of October 2026), is operationally significant.
Storage and data costs can be lower than for an equivalent native app, because the shell is downloaded and cached incrementally rather than installed as a full package, which matters on metered connections and on devices where storage is constrained.
Reach in markets where native app stores are fragmented or app downloads are costly for users: a PWA removes the app-store download step, which can matter where storage and data are scarce. The user's mental model of "it lives on my home screen and works offline" matches the PWA outcome closely; the install step can involve less friction than a native app download.
Multilingual reach inherits from the website. A PWA on a 20-locale site already serves its pages in all 20 locales, because the locale routing exists on the web. The manifest's name and short_name each hold a single value, though, so localizing the installed app's own name takes extra work (MDN documents *_localized manifest members for this). A native app would need its own localized resources and store metadata localized into 20 languages, maintained alongside the website.
What still needs JavaScript discipline
Five areas need careful design even with platform-level support.
Lifecycle management. The service worker's update flow can leave users on stale code in two ways. If skipWaiting() is called without a reload prompt, open tabs keep running the old page code against the new worker. If it is never called and there is no prompt, the new worker waits and users on an open tab keep running the old version until every tab is closed — a class of "why is the bug still there" problems. The right pattern is to detect a waiting worker, prompt the user, and activate and reload on confirmation.
Cache invalidation. Content-addressed URLs (hash in the path) make cache invalidation trivial; mutable URLs make it dangerous. Build the asset pipeline so every changing file gets a new hashed URL; the cache strategy then becomes "cache-first forever" without coordination problems.
Push token management. Store the push subscription server-side, refresh when the browser rotates it (the subscription can change), and handle the unsubscribe path explicitly. Subscriptions that the server thinks are valid but are not silently fail — a class of "the user said they want notifications but isn't getting them" problems.
Offline UX. Design empty / failed / cached / fresh states explicitly. Do not let the user see a generic "no network" error when the cache has fallback content; show the cached content with a banner that explains its freshness. The offline experience is part of the product; it should not be the framework's default error screen.
Storage quotas. Request persistent storage explicitly with navigator.storage.persist() for high-value caches; without persistent storage, the engine may evict data under pressure. Persistent storage is granted based on engine heuristics and user signal (installed PWAs are more likely to be granted persistent storage automatically).
Deliverables and acceptance criteria for the next planning cycle
- If you do not have a manifest, write a minimal valid one (
name,short_name,icons192/512 + maskable,start_url,display) and link it from your HTML - If you do not have a service worker, register one that precaches the app shell and applies cache-first to hashed assets, network-first to HTML, and stale-while-revalidate to API responses
- Add a measurable install-prompt UI for Chromium browsers using
beforeinstallprompt; document the iOS Share-sheet flow separately for Safari users - Add Web Push only if your product needs it — a permission request without a clear product reason may be declined and can make users wary of later requests
- Add CI checks for manifest validity, service worker registration, and HTTPS configuration; Lighthouse removed its PWA category in version 12 (2024), so use a manifest validator plus a scripted installability check, and confirm installability in the Chrome DevTools Application panel before release
- If you target users in markets where native distribution is expensive, prioritize the PWA install rate as a measurable conversion event in your analytics