A few years ago, I shipped a PWA for a logistics company. The install banner worked. The offline mode worked. Lighthouse gave me a 100/100. Three weeks later, a driver in rural Nebraska called support because the app showed last Tuesday's delivery list every time he opened it. That's the moment I learned the difference between a PWA that demos well and a PWA that ships well: it's all in the last 10%, and the last 10% is almost entirely about cache invalidation.
PWAs sound simple-HTTPS + manifest + service worker. They are simple, the same way chess is simple. The rules fit on a postcard; the depth takes years. This article is the field guide I wish I'd had: what to actually do, what to actually avoid, and where the bodies are buried.
What a PWA Actually Is (and Isn't)
A Progressive Web App is a website that meets three requirements:
- Served over HTTPS.
- Has a web app manifest with at least name, icons, start_url, and display mode.
- Has a registered service worker that controls the page (or at minimum, handles fetch for offline).
Meet those and Chrome will show the install prompt. That's the "progressive" part-the app gets more capable on browsers that support more capabilities, but still works everywhere as a regular website.
What a PWA is NOT: a way to bypass app stores. You can ship a PWA, but discoverability is rough, iOS support lags Android by 12-18 months, and several platforms (Apple) gate features like push notifications behind being actually installed to the home screen. PWAs are excellent for internal tools, B2B SaaS, content apps, and lightweight commerce. They are bad for apps that need deep OS integration, App Store distribution, or background processing more aggressive than the periodic background sync API allows.
Why Build a PWA
The honest pitch:
- One codebase. No separate iOS, Android, and web teams. Same JavaScript, same CSS, same deployment pipeline.
- No app store review. Ship today, rollback in 30 seconds. No 24-hour review windows, no 30% cut.
- Works offline. Service workers cache resources and API responses. Users on flaky connections (i.e., everyone on mobile) get a working app instead of a dinosaur.
- Installable. Home screen icon, full-screen experience, splash screen. Looks native to most users.
- Smaller than native. A typical PWA is 200KB-2MB. Native apps are often 30-80MB.
The trade-offs:
- iOS is the second-class citizen. Push notifications only landed on iOS 16.4 in 2023, and only for installed PWAs. Background sync is still missing. Apple's web push is also less reliable than Android's.
- No real background processing. Service workers wake up for events and shut down. You can't run a long-lived background thread.
- Camera, Bluetooth, file system access exist but inconsistently. Always feature-detect.
- Discovery is harder. Users don't browse the web for apps the way they browse app stores.
Architecture Overview
We'll build a typical PWA architecture with these pieces:
CodeCopy +---------------------------+ +--------------------------+
| Browser Tab | | Service Worker |
| (React app, Vite bundle) |=====>| (Workbox-powered cache) |
| | | |
| - App shell (HTML/CSS/JS)| | - Precache assets |
| - Runtime data fetches | | - Runtime cache (API) |
| - Push event handler |<====>| - Push + sync handlers |
+---------------------------+ +--------------------------+
|
v
+--------------------------+
| CDN / Origin |
| (Vite build output) |
+--------------------------+
The "app shell" pattern is the dominant mental model: a small HTML+CSS+JS shell that loads instantly from cache, then dynamically fetches content. The shell renders the chrome (nav, header, layout), content fills in as it arrives. This is what makes PWAs feel native-first paint is instant because the shell isn't waiting on the network.
Prerequisites and Folder Structure
You need Node 20+, npm or pnpm, and a way to serve HTTPS locally (mkcert works well-service workers and push don't work over plain HTTP except on localhost).
BashCopy
shell
npm create vite@latest pwa-demo -- --template react
cd pwa-demo
npm install
npm install -D workbox-cli@7.1.0
npm install workbox-window@7.1.0 workbox-core@7.1.0 workbox-precaching@7.1.0 workbox-routing@7.1.0 workbox-strategies@7.1.0 workbox-expiration@7.1.0 workbox-cacheable-response@7.1.0
plaintext
Folder structure after setup:
CodeCopy
plaintext
pwa-demo/
├── public/
│ ├── icons/
│ │ ├── icon-192.png
│ │ ├── icon-512.png
│ │ └── icon-maskable-512.png
│ ├── manifest.webmanifest
│ ├── offline.html # Fallback page when nothing is cached
│ └── sw.js # Service worker (Workbox-generated + custom)
├── src/
│ ├── main.jsx # App entry, registers SW
│ ├── App.jsx
│ ├── sw-register.js # SW registration + update flow
│ ├── api.js # API client with cache hints
│ └── push.js # Push subscription helper
├── vite.config.js
├── workbox-config.js
└── package.json
markdown
For the icons, generate them with one of the many PWA icon generators-pwa-asset-generator is good. You need at minimum 192x192 and 512x512 PNGs. A "maskable" icon (with safe-zone padding) is increasingly required by Android for the adaptive icon look. Don't skip it; an un-maskable icon gets squished into a circle and looks terrible.
The Web App Manifest
public/manifest.webmanifest:
JSONCopy
json
{
"name": "Mango Tasks",
"short_name": "Tasks",
"description": "Offline-first task manager for the chronically overcommitted.",
"start_url": "/?source=pwa",
"scope": "/",
"display": "standalone",
"display_override": ["window-controls-overlay", "standalone", "minimal-ui"],
"background_color": "#0b0f17",
"theme_color": "#f59e0b",
"orientation": "portrait-primary",
"icons": [
{ "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" },
{ "src": "/icons/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
],
"shortcuts": [
{ "name": "New Task", "url": "/?action=new", "icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }] }
],
"categories": ["productivity", "utilities"],
"screenshots": [
{ "src": "/screenshots/desktop-1.png", "sizes": "1280x720", "type": "image/png", "form_factor": "wide" },
{ "src": "/screenshots/mobile-1.png", "sizes": "390x844", "type": "image/png", "form_factor": "narrow" }
]
}
markdown
Things that matter:
-
display: standaloneis what most apps want.fullscreenhides the status bar (good for games, bad for everything else).minimal-uikeeps some browser chrome.browseris just a regular tab. -
display_overridelets you opt into newer display modes likewindow-controls-overlay(desktop installable PWAs with custom title bars) with fallbacks. -
theme_coloraffects the browser UI color on mobile and the title bar on desktop installs. Pick a brand color. -
scopedetermines which URLs the PWA controls. If you set it to/app/, then navigating to/about/opens in a regular browser tab. Usually you want/. -
shortcutsshow up in the right-click / long-press menu on the installed icon. Users love these once they discover them. -
screenshotsare required for the richer install UI on Android (the full-screen install sheet). Without them, you get the small install prompt.
Link it from your HTML:
HTMLCopy
html
markdown
Yes, the Apple meta tags are still needed in 2024. iOS Safari ignores much of the manifest and reads these legacy tags instead. Belt and suspenders.
The Service Worker: Workbox vs Hand-Rolled
You can write a service worker by hand. You should not. Hand-rolled service workers are how you get the "last Tuesday's delivery list" bug-cache key wrong, you serve stale content forever, no expiration.
Workbox (by Google) is the de facto standard. It gives you precaching (replace old assets atomically when you deploy), runtime caching strategies (cache-first, network-first, stale-while-revalidate), expiration policies, and a sane API.
workbox-config.js (for the build-time precache manifest):
JavaScriptCopy
javascript
module.exports = {
globDirectory: 'dist/',
globPatterns: ['*/.{html,js,css,woff2,png,svg,ico}'],
globStrict: true,
cleanupOutdatedCaches: true,
dontCacheBustURLsMatching: /.[a-f0-9]{8}./, // Vite already fingerprints
maximumFileSizeToCacheInBytes: 4 * 1024 * 1024,
swDest: 'dist/sw.js',
swSrc: 'public/sw.js', // Use injection strategy
};
javascript
public/sw.js (your custom service worker with Workbox modules):
JavaScriptCopy
javascript
import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching';
import { registerRoute, setDefaultHandler } from 'workbox-routing';
import { CacheFirst, NetworkFirst, StaleWhileRevalidate } from 'workbox-strategies';
import { ExpirationPlugin } from 'workbox-expiration';
import { CacheableResponsePlugin } from 'workbox-cacheable-response';
// 1. Precache the build assets. WB_MANIFEST is replaced at build time.
precacheAndRoute(self.WB_MANIFEST || []);
cleanupOutdatedCaches();
// 2. App shell fallback for navigations that fail
registerRoute(
({ request }) => request.mode === 'navigate',
async ({ event }) => {
try {
const resp = await new NetworkFirst({
networkTimeoutSeconds: 3,
cacheName: 'pages',
}).handle({ event, request: event.request });
return resp || (await caches.match('/offline.html'));
} catch {
return await caches.match('/offline.html');
}
}
);
// 3. Static assets (images, fonts): cache-first with expiration
registerRoute(
({ request }) => ['image', 'font'].includes(request.destination),
new CacheFirst({
cacheName: 'assets',
plugins: [
new CacheableResponsePlugin({ statuses: [0, 200] }),
new ExpirationPlugin({ maxEntries: 100, maxAgeSeconds: 30 * 24 * 60 * 60 }),
],
})
);
// 4. API GETs: stale-while-revalidate (instant from cache, refresh in background)
registerRoute(
({ url, request }) => url.pathname.startsWith('/api/') && request.method === 'GET',
new StaleWhileRevalidate({
cacheName: 'api',
plugins: [
new CacheableResponsePlugin({ statuses: [0, 200] }),
new ExpirationPlugin({ maxEntries: 200, maxAgeSeconds: 24 * 60 * 60 }),
],
})
);
// 5. API POST/PUT/DELETE: network-only, but queue for background sync on failure
registerRoute(
({ url, request }) => url.pathname.startsWith('/api/') && request.method !== 'GET',
async ({ event }) => {
try {
return await fetch(event.request.clone());
} catch (err) {
// Queue for background sync - requires 'sync' permission + registration
const channel = new BroadcastChannel('bg-sync');
channel.postMessage({ type: 'queue', url: event.request.url, method: event.request.method });
return new Response(JSON.stringify({ queued: true }), {
status: 202, headers: { 'Content-Type': 'application/json' },
});
}
}
);
setDefaultHandler(({ request }) => fetch(request));
// Skip waiting on the new SW, take control immediately on the next load
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') self.skipWaiting();
});
self.addEventListener('activate', (event) => {
event.waitUntil(self.clients.claim());
});
markdown
This is a real, shippable service worker. Let me walk through the strategies:
- Precache is for the build's hashed assets. Workbox replaces
__WB_MANIFESTwith the file list at build, and serves them cache-first automatically. When you deploy new hashed files, the new SW precaches them and atomically swaps in. - CacheFirst for images and fonts. They're immutable (hashed), so once cached, never hit the network.
- StaleWhileRevalidate for API GETs. The user gets an instant response from cache, the SW fetches a fresh copy in the background to update the cache for next time. This is what makes PWAs feel instant.
- NetworkFirst for navigations (HTML). Try the network, fall back to cache, fall back to offline page. Three-second timeout so a slow network doesn't hang the page.
Registering and Updating the Service Worker
src/sw-register.js:
JavaScriptCopy
javascript
import { Workbox } from 'workbox-window';
export function registerSW() {
if (!('serviceWorker' in navigator)) return;
const wb = new Workbox('/sw.js');
let refreshing = false;
// The "new version available" prompt
wb.addEventListener('waiting', () => {
// In real apps, show a toast: "New version available. Reload to update."
if (confirm('A new version is available. Reload to update?')) {
wb.addEventListener('controlling', () => {
if (refreshing) return;
refreshing = true;
window.location.reload();
});
wb.messageSkipWaiting();
}
});
wb.addEventListener('activated', (event) => {
if (!event.isUpdate) {
console.log('SW activated for the first time');
}
});
wb.register();
}
plaintext
Call it from main.jsx after the app mounts:
JavaScriptCopy
jsx
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { registerSW } from './sw-register';
ReactDOM.createRoot(document.getElementById('root')).render(
);
if (import.meta.env.PROD) {
registerSW();
}
markdown
The update flow is critical and most teams get it wrong. The default service worker lifecycle is: install new SW → wait → activate only when ALL tabs are closed. That's terrible UX-users never close all tabs. The pattern above (skipWaiting on user confirmation) lets the new SW take over immediately, with a reload to pick up the new precached assets.
There's a subtle bug here: if you call skipWaiting and reload, the new SW serves new HTML that references new JS chunks, but the old precache might still be serving old chunks. Workbox handles this with cleanupOutdatedCaches, but if you're hand-rolling, version your cache names and clean up old ones in the activate handler.
Push Notifications
Push is the killer feature for engagement and the easiest to abuse. Here's the full setup.
Server-side, you need VAPID keys (Voluntary Application Server Identification) and a push service (each browser vendor runs one-FCM for Chrome, Apple Push for Safari).
Generate VAPID keys once:
BashCopy
shell
npx web-push generate-vapid-keys
Outputs public key and private key. Store the private key server-side.
javascript
src/push.js (client subscription):
JavaScriptCopy
javascript
const VAPID_PUBLIC_KEY = 'BMw...your-public-key...';
export async function subscribeToPush() {
if (!('serviceWorker' in navigator) || !('PushManager' in window)) return null;
const reg = await navigator.serviceWorker.ready;
let sub = await reg.pushManager.getSubscription();
if (!sub) {
sub = await reg.pushManager.subscribe({
userVisibleOnly: true, // Required: every push must show a notification
applicationServerKey: urlBase64ToUint8Array(VAPID_PUBLIC_KEY),
});
}
// Send sub to your backend, store per-user
await fetch('/api/push/subscribe', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(sub),
});
return sub;
}
function urlBase64ToUint8Array(base64String) {
const padding = '='.repeat((4 - base64String.length % 4) % 4);
const base64 = (base64String + padding).replace(/-/g, '+').replace(/_/g, '/');
const raw = atob(base64);
return Uint8Array.from([...raw].map(c => c.charCodeAt(0)));
}
plaintext
Add push handling to the service worker:
JavaScriptCopy
javascript
self.addEventListener('push', (event) => {
const payload = event.data ? event.data.json() : {};
event.waitUntil(
self.registration.showNotification(payload.title || 'Update', {
body: payload.body || '',
icon: '/icons/icon-192.png',
badge: '/icons/badge-72.png',
data: { url: payload.url || '/' },
tag: payload.tag || 'default',
renotify: !!payload.tag,
})
);
});
self.addEventListener('notificationclick', (event) => {
event.notification.close();
event.waitUntil(
clients.matchAll({ type: 'window', includeUncontrolled: true }).then((clientList) => {
for (const client of clientList) {
if (client.url.includes(event.notification.data.url) && 'focus' in client) {
return client.focus();
}
}
if (clients.openWindow) return clients.openWindow(event.notification.data.url);
})
);
});
plaintext
Server-side push with web-push:
JavaScriptCopy
javascript
import webpush from 'web-push';
webpush.setVapidDetails(
'mailto:dev@mango.example',
process.env.VAPID_PUBLIC_KEY,
process.env.VAPID_PRIVATE_KEY
);
async function sendPush(subscription, payload) {
try {
await webpush.sendNotification(subscription, JSON.stringify(payload));
} catch (err) {
if (err.statusCode === 410 || err.statusCode === 404) {
// Subscription is no longer valid-user uninstalled or revoked
await db.pushSubscriptions.delete({ endpoint: subscription.endpoint });
} else {
throw err;
}
}
}
markdown
Things nobody tells you:
- iOS push only works for installed PWAs (added to home screen). On a regular Safari tab, push silently does nothing.
-
userVisibleOnly: trueis mandatory on Chrome. You cannot send silent push. Every push must show a notification or the browser revokes your subscription. - Push delivery is best-effort. The push service (FCM, APNS) may delay or coalesce messages. Don't use web push for anything time-critical without a fallback.
- Subscriptions expire. Handle 410/404 from the push service and clean up. Re-subscribe on app launch.
Background Sync (and Its Limits)
Background Sync lets the SW retry failed network requests when connectivity returns. The user composes a comment offline, the SW queues it, the request fires when the network is back-even if the tab is closed.
Add to the service worker:
JavaScriptCopy
javascript
import { Queue } from 'workbox-background-sync';
const apiQueue = new Queue('apiQueue', {
maxRetentionTime: 24 * 60, // minutes - retry for up to 24h
onSync: async ({ queue }) => {
let entry;
while ((entry = await queue.shiftRequest())) {
try {
await fetch(entry.request.clone());
} catch (err) {
// Re-queue and try again next sync
await queue.unshiftRequest(entry);
throw err;
}
}
},
});
self.addEventListener('sync', (event) => {
if (event.tag === 'apiQueue') event.waitUntil(apiQueue.replayRequests());
});
plaintext
Client-side, queue failed mutations:
JavaScriptCopy
javascript
async function postWithRetry(url, body) {
try {
const resp = await fetch(url, {
method: 'POST', body: JSON.stringify(body),
headers: { 'Content-Type': 'application/json' },
});
if (!resp.ok) throw new Error('non-ok');
} catch (err) {
// Queue for background sync
const reg = await navigator.serviceWorker.ready;
if ('sync' in reg) {
await apiQueue.pushRequest({ request: new Request(url, {
method: 'POST', body: JSON.stringify(body),
headers: { 'Content-Type': 'application/json' },
})});
await reg.sync.register('apiQueue');
} else {
// iOS Safari fallback: just retry on next focus
localStorage.setItem('pendingPost', JSON.stringify({ url, body }));
}
}
}
markdown
Important caveats:
- Background Sync is not supported on iOS Safari as of 2024. Periodic Background Sync is Chromium-only. Always feature-detect and have a fallback (retry on app focus, or use IndexedDB as a queue).
-
periodicSyncrequires a minimum interval of 12 hours and the browser throttles aggressively based on app usage. Don't rely on it for time-sensitive work.
Production Considerations
Cache versioning. If you bypass Workbox's precache (you'll want to for runtime caches), version the cache name: api-v1, api-v2. On deploy of breaking changes, bump the version and delete old caches in activate. I've seen a team ship a new API response shape and have the old SW serve stale data for a week because nobody bumped the cache name.
Bundle size matters more than for regular web apps. Mobile users installing your PWA on a slow connection will abandon if the install takes too long. Aim for <500KB compressed initial bundle. Code-split routes. Lazy-load non-critical components. Tree-shake ruthlessly.
HTTPS is non-negotiable. Service workers only register on HTTPS (or localhost for dev). Get a cert. Set up HSTS. Cloudflare, Vercel, Netlify-any modern host handles this.
Cross-origin considerations. If your API is on a different origin, you need proper CORS headers including Service-Worker-Allowed if you want the SW to control more than its own scope. Cache opaque responses carefully-Workbox's CacheableResponsePlugin with statuses [0, 200] handles opaque, but you can't read the body, so stale-while-revalidate won't update them.
Monitoring. Service worker errors don't show up in your normal frontend error tracking because they run in a different context. Wire up self.addEventListener('error', ...) and unhandledrejection in the SW to post errors to your monitoring endpoint. Log cache hit/miss ratios. Track update adoption-if 30% of users are on a stale SW after a week, your update flow is broken.
OTA updates without app stores. This is the killer feature. You deploy, the next time users open the app, they get the new version (after the waiting/reload flow). No review, no waiting. Use this power responsibly-test your deploys, canary them, and have a rollback plan.
Common Mistakes and How to Detect Them
Caching the wrong things. Caching POST responses (you can, but you usually shouldn't), caching authenticated responses in a shared cache (cross-user data leak), caching HTML without a network-first strategy (stale content forever). Detection: review every registerRoute and ask "what if this is stale for a week?"
Forgetting to handle SW update failures. New SW fails to install (bad precache), users stuck on old SW forever. Detection: monitor workbox-window controlling events, alert if update adoption lags.
Using cache.match() without checking. Returning undefined from a cached handler crashes the request. Always have a fallback. Detection: any code path that returns from a route handler should guarantee a Response.
Aggressive skipWaiting. If you skipWaiting without a reload prompt, the new SW serves new HTML that references new JS, but the old precache may still have old JS chunks. Result: broken UI until reload. Detection: test your deploy flow on a real device, multiple times.
Storing user-specific data in a shared cache. Caching /api/me with a generic cache key serves User A's data to User B. Detection: any registerRoute for an authenticated endpoint needs a cache key that includes the user ID, or you simply don't cache authenticated responses.
Manifest start_url without a source param. You can't tell installs from regular visits. Detection: add ?source=pwa to start_url and check your analytics.
Troubleshooting Real Production Issues
Symptom: "Add to Home Screen" prompt never appears on iOS.
Cause: iOS requires the manifest, apple-touch-icon, AND apple-mobile-web-app-capable meta tag. Missing one and the "Add to Home Screen" option silently degrades to a regular bookmark. Fix: include all the legacy Apple meta tags.
Symptom: Installed PWA opens in a browser tab instead of standalone mode.
Cause: display: standalone not set, or scope mismatched, or the user navigated outside the scope. Fix: verify manifest, ensure start_url is within scope.
Symptom: Push notifications work on Android, never delivered on iOS.
Cause: iOS push requires the PWA to be installed to home screen first. iOS also doesn't support silent push-every push must show a notification. Fix: gate the subscribe button behind navigator.standalone || window.matchMedia('(display-mode: standalone)').matches, document the iOS install flow.
Symptom: App works perfectly for the developer, never loads for first-time visitors.
Cause: SW precache references a hashed asset that's not in the current build (e.g., index.abc123.js was deployed, SW still references index.def456.js). Fix: rebuild and redeploy the SW with the new precache manifest. Don't manually edit sw.js after workbox injectManifest.
Symptom: Users see stale data for days after an API change.
Cause: Runtime cache TTL too long, or no version bump on cache name. Fix: shorten maxAgeSeconds, bump cache name on breaking API changes, expose a "clear cache" admin endpoint.
Symptom: Lighthouse PWA score is 100, but real users report the app is slow.
Cause: Lighthouse checks for presence of features, not performance. Your bundle is 3MB and your runtime cache is misconfigured. Fix: run Lighthouse Performance + Field Data (CrUX) too. Real user metrics beat synthetic audits.
Testing and CI/CD
Lighthouse CI in your build pipeline catches regressions:
YAMLCopy
yaml
.github/workflows/lighthouse.yml
name: Lighthouse CI
on: [pull_request]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4 with: { node-version: '20' }
- run: npm ci && npm run build
- run: npx @lhci/cli@0.13.x autorun --upload.target=temporary-public-storage
Manual testing matrix:
- Chrome on Android (full PWA support)
- Safari on iOS (limited support-test what does and doesn't work)
- Chrome desktop (installable, push, sync)
- Firefox (most features, some gaps)
- Edge (Chromium-based, behaves like Chrome)
- Offline mode (DevTools → Application → Service Workers → Offline)
- Throttled network (DevTools → Network → Slow 3G)
- "Update on reload" toggle in DevTools to test SW updates
Puppeteer can drive end-to-end tests against the installed PWA context. Use it for any flow that depends on SW behavior-cache hits, offline fallback, update prompts.
Alternatives and Cost Comparison
| Approach | Best for | Cost | Trade-off |
|---|---|---|---|
| Pure PWA | Content, internal tools, B2B | $0 + hosting | No app store, weaker iOS support |
| PWA + TWA (Trusted Web Activity) | Android app store presence from a PWA | $25 one-time Play Store fee | Wraps the PWA, still no iOS |
| Capacitor | Web codebase that needs native plugins | Free + native dev time | Hybrid-more native access, more complexity |
| React Native / Flutter | True cross-platform mobile | Free + native dev time | Different codebase from web |
| Native (Swift/Kotlin) | Max performance, deep OS integration | Native dev time | Two codebases |
For most teams: ship a PWA first. If you outgrow it (need native APIs, app store distribution, deep background processing), wrap with Capacitor or move to a cross-platform native framework. Don't start with native unless you have a clear reason.
Real-World Use Cases
- Starbucks PWA. 234KB install, doubled daily active users on mobile. Menu browsing works offline, ordering needs network.
- Twitter Lite. Replaced the mobile web with a PWA, saw 65% increase in pages per session, 75% increase in Tweets sent, 20% lower bounce rate. (Public case study.)
- Pinterest. Rebuilt their mobile web as a PWA, core engagements up 60%, time on site up 40%.
- Internal tools. Most B2B SaaS dashboards should be PWAs. Field workers, ops teams, and on-call engineers benefit massively from offline access and instant loads.
- Kiosks and displays. PWAs in kiosk mode on a Chromebox or iPad are a great fit-auto-update, remote management via MDM, no app store review for content changes.
Wrapping Up
PWAs are quietly the best option for a huge class of apps-internal tools, B2B SaaS, content apps, anything where app store distribution isn't the bottleneck. They're not a silver bullet, but they let small teams ship native-feeling apps without maintaining three codebases.
The thing to remember: a PWA that demos well is easy. A PWA that ships well is hard, and the hard part is the cache strategy. Spend your time on that, write tests for the update flow, monitor real user behavior, and you'll be ahead of 90% of the PWAs in production today.
Originally published on Mango Developer.
