# PWA.live — full English content --- # PWA.live: the independent reference for Progressive Web Apps URL: https://www.pwa.live/ Guides, tools, support data and open source for building Progressive Web Apps. --- # PWA checker: test any site's manifest, icons and service worker URL: https://www.pwa.live/tools/pwa-checker/ Enter a URL. Get a clear list of what passes and what to fix. ## What it checks - **Security**: HTTPS and a valid response. - **Manifest**: linked from the page, valid JSON, `name`, `short_name`, `id`, `start_url`, `scope`, `display`, colours, `description`, `screenshots` and `shortcuts`. - **Icons**: a 192 px and a 512 px icon, a separate maskable icon, and an `apple-touch-icon`. - **Service worker**: whether the page registers one, and whether the script is reachable with a JavaScript content type. - **Page basics**: viewport, `theme-color`, title and language. Each result says **pass**, **improve** or **fail**, with a one-line fix and a link to the guide that explains it. ## How it works Our server fetches the public page you enter (and its manifest and service worker script), reads them, and sends back the results. It follows up to three redirects, reads at most 1.5 MB, refuses private and local network addresses, and does not store your URL or the results. Because it cannot run JavaScript, it detects service worker registration by looking for it in the page and its scripts; a worker registered by code it cannot see is reported as "not found", so double-check in DevTools. Shared a link to PWA.live from your phone? On Android, install PWA.live and choose it in the share sheet: the link opens here. --- # Web app manifest generator URL: https://www.pwa.live/tools/manifest-generator/ Fill in a form, get a correct manifest.webmanifest. ## How to use it 1. Fill in your app's name, short name and description. 2. Choose colours and how the app should open (`display`). 3. Keep the icon list or edit the paths to match your files. Use the [icon generator](/tools/icon-generator/) to make them. 4. Add up to four shortcuts. 5. Copy the JSON or download `manifest.webmanifest`, put it at the root of your site and link it: ```html ``` The generator always sets an `id`, which most hand-written manifests forget: see [id, scope and start_url](/learn/manifest-id-scope-start-url/). Every field is explained in [the web app manifest](/learn/web-app-manifest/). --- # Web app manifest validator URL: https://www.pwa.live/tools/manifest-validator/ Paste your manifest JSON and see every problem at once. Paste the contents of your `manifest.webmanifest` (or `manifest.json`) and press **Validate**. It checks: - **JSON syntax**, with the line of the first error. - **Install requirements** for Chrome and Edge: name or short_name, 192 and 512 px icons, start_url, display. - **Identity**: an `id`, a `start_url` inside the `scope`. - **Icons**: valid `sizes`, a separate maskable icon, no `"any maskable"` on one image. - **Screenshots**: sizes between 320 and 3840 px, aspect ratio no more than 2.3, at least one `wide` and one `narrow`. - **Shortcuts**: names, URLs and 96 px icons. - **Colours**: valid CSS colours. It runs in your browser; nothing is sent anywhere. To check a live site including its icons and service worker, use the [PWA checker](/tools/pwa-checker/). --- # PWA icon generator: every size from one image URL: https://www.pwa.live/tools/icon-generator/ Drop in one image, download every icon in a zip. ## How to use it 1. Choose a square image, ideally an SVG or a PNG of at least 512 x 512 px. 2. Pick a background colour for maskable and Apple icons, and the padding. 3. Check the previews, including the maskable crop. 4. Download the zip. It contains: | File | Size | Use | | --- | --- | --- | | `icon-192.png`, `icon-512.png` | 192, 512 | Manifest icons (`purpose: any`) | | `maskable-192.png`, `maskable-512.png` | 192, 512 | Manifest icons (`purpose: maskable`) | | `apple-touch-icon.png` | 180 | iPhone and iPad Home Screen (opaque) | | `favicon-32.png`, `favicon-16.png` | 32, 16 | Browser tabs | | `icons.json` | | The `icons` array to paste into your manifest | Everything happens in your browser with the Canvas API; your image is never uploaded. Learn more in [icons and maskable icons](/learn/icons-and-maskable-icons/). --- # Maskable icon preview: see how launchers crop your icon URL: https://www.pwa.live/tools/maskable-icon-preview/ Check your logo survives every launcher shape. Upload your maskable icon (or try it with our example), then switch between shapes. The dashed circle shows the **safe zone**: a circle with a diameter of 80% of the icon. Anything outside it may be cut off on some devices. If parts of your logo fall outside the circle, add padding and export again, or use the [icon generator](/tools/icon-generator/), which adds the right padding automatically. Background on why: [icons and maskable icons](/learn/icons-and-maskable-icons/). --- # Service worker generator: offline support in one file URL: https://www.pwa.live/tools/service-worker-generator/ Choose strategies, get a tested sw.js and the code to register it. ## How to use it 1. List the files your app needs to start (the **app shell**), one per line. 2. Choose a strategy for each type of request. Not sure? Read [caching strategies](/learn/caching-strategies/) or use the [strategy picker](/tools/caching-strategy-picker/). 3. Set the offline page and cache limits. 4. Copy `sw.js` to the **root** of your site, and add the registration snippet to your pages. 5. Change the version string whenever you deploy, so browsers pick up the new worker. The generated worker uses plain JavaScript with no libraries, handles navigation preload, cleans old caches, never touches non-GET requests, and waits for your page to confirm before activating an update. For large apps with hashed build files, consider [Workbox or Serwist](/learn/workbox-and-serwist/). --- # Caching strategy picker URL: https://www.pwa.live/tools/caching-strategy-picker/ Three questions, one recommendation, with code. Pick a request type, or describe your own with three questions: - **How often does it change?** Never at the same URL, sometimes, or every time. - **Does it have to be fresh?** Is a slightly old copy acceptable? - **Is it private or a write?** Logged-in data, payments, POST requests. The picker explains its choice and gives you the code, in plain JavaScript and in Workbox form. The full explanation is in [caching strategies](/learn/caching-strategies/). --- # Offline page generator URL: https://www.pwa.live/tools/offline-page-generator/ A friendly offline page that lists what is still available. Fill in your app name, colours and message, choose a language for the default text, and download `offline.html`. The page: - has all its CSS inline, so it works with nothing else cached; - reloads automatically when the connection comes back; - lists pages already in the browser's caches, so people can keep reading. Precache it in your service worker and serve it for failed navigations: see [make a great offline page](/learn/offline-fallback-page/). The [service worker generator](/tools/service-worker-generator/) already includes that part. --- # Install button generator URL: https://www.pwa.live/tools/install-button-generator/ Your own install button, with an iOS fallback. Set your button text, iOS hint and when the button should appear, and copy the snippet. It: - catches `beforeinstallprompt` and shows the button only when installation is possible; - shows a short "Share, then Add to Home Screen" hint on iPhone and iPad; - hides itself when the app runs installed; - reports `install_prompt` and `app_installed` events if you use Google Analytics. The live preview uses this site's real install state: if your browser can install PWA.live, the preview button really installs it. Background in [add your own install button](/learn/custom-install-button/). --- # iOS web app meta tag generator URL: https://www.pwa.live/tools/ios-meta-tags/ The head tags that make your PWA look right on iPhone and iPad. Since iOS 16.4 Safari reads most details from the [manifest](/learn/web-app-manifest/), but a few Apple-specific tags still matter. Fill in the form to get: - `apple-touch-icon` (the Home Screen icon in most iOS versions); - `apple-mobile-web-app-title` for a short name under the icon; - `apple-mobile-web-app-status-bar-style`; - `viewport-fit=cover`, so you can use `env(safe-area-inset-*)`; - `theme-color` for light and dark mode; - the older `apple-mobile-web-app-capable` and its standard replacement `mobile-web-app-capable`. More in [PWAs on iPhone and iPad](/learn/pwa-on-ios/). --- # Learn Progressive Web Apps: every guide URL: https://www.pwa.live/learn/ Fifty-plus guides, from the basics to app stores. Every guide on PWA.live, grouped by topic. New to PWAs? Start with [what a PWA is](/learn/what-is-a-pwa/) and then [build one from scratch](/learn/build-a-pwa-from-scratch/). Each guide shows when it was last reviewed, and links to the matching rows of our [browser support table](/browser-support/). --- # Theme colour and splash screen preview URL: https://www.pwa.live/tools/theme-color-preview/ See your colours on a phone and a desktop window before you ship. Pick your `theme_color` and `background_color`, add your app name and an icon, and see: - the **Android splash screen** (background colour, icon, name); - the **status bar** and **title bar** in your theme colour; - a **desktop window** title bar; - the **contrast ratio** of white and dark text on your theme colour, so titles stay readable. Copy the matching manifest fields and `meta` tags when you are happy. Details in [the web app manifest](/learn/web-app-manifest/) and [display modes](/learn/display-modes/). --- # VAPID key generator for web push URL: https://www.pwa.live/tools/vapid-keys/ A VAPID key pair, generated on your device. Press **Generate** to create a new key pair with the browser's own WebCrypto API (an ECDSA key on the P-256 curve, the format the Web Push standard requires). - The **public key** goes in your page, in `pushManager.subscribe({ applicationServerKey })`. - The **private key** goes on your server only, in your [web-push library](/open-source/web-push/) settings. Never put it in client code or commit it to a repository. The keys are created on your device and never sent anywhere. Generate one pair per site and keep it: changing keys invalidates every existing subscription. Full walkthrough: [web push notifications](/learn/web-push-notifications/). --- # PWA feature detector: what does my browser support? URL: https://www.pwa.live/tools/feature-detector/ A live check of thirty PWA features in the browser you are using now. This page runs feature detection for more than thirty APIs in the browser you are using right now, and shows your display mode and storage quota. Open it on each device you support, or send the link to a tester. Feature detection tells you if an API **exists**. Some features also depend on installation (push on iOS, badging) or permissions, so the result says when that applies. Compare with our [browser support table](/browser-support/). --- # Storage quota and persistence checker URL: https://www.pwa.live/tools/storage-inspector/ How much a PWA can store here, and whether it will be kept. See this browser's storage quota for PWA.live, how much is used (by our cached pages), and whether storage is **persistent** or **best-effort**. Press **Request persistence** to see how your browser answers `navigator.storage.persist()`: Chrome and Edge decide automatically, Firefox asks you. The numbers are for this site, but other sites in the same browser get similar quotas. Background in [storage, quota and eviction](/learn/storage-quota-and-eviction/). --- # Notification tester: see how web notifications look URL: https://www.pwa.live/tools/notification-tester/ Show a real notification through this site's service worker. 1. Press **Allow notifications** and accept the browser prompt. 2. Write a title and text, choose options, and press **Show notification**. The notification is shown by PWA.live's own service worker with `registration.showNotification()`, the same call your push handler will make. Tapping it opens this page. Nothing is sent to a server, and we do not subscribe you to anything. On iPhone and iPad, notifications only work after you **add PWA.live to the Home Screen** and open it from there (iOS 16.4 and later). Full guide: [web push notifications](/learn/web-push-notifications/). --- # Free PWA tools: checker, generators and testers URL: https://www.pwa.live/tools/ Fifteen free tools. Most run entirely in your browser. Free, no sign-up, no tracking inside the tools. Everything except the [PWA checker](/tools/pwa-checker/) runs entirely on your device: your files, keys and code never leave your browser. Install PWA.live and the in-browser tools keep working offline. --- # Open-source PWA libraries and tools on GitHub URL: https://www.pwa.live/open-source/ The libraries worth using, and when to use each one. Every project here is open source and on GitHub. For each one we explain what it does, **when to use it**, how to install it, and what to use instead. Status notes say when a project is no longer actively maintained. The same list is available as [JSON](/data/tools.json) for scripts and AI assistants. Picks marked with a star are where we would start. --- # PWA directory: famous Progressive Web Apps from A to Z URL: https://www.pwa.live/directory/ Well-known PWAs, what they built, and what happened next. Companies of every size ship Progressive Web Apps. Here are some of the best known, in alphabetical order, with what is PWA-specific about each and the results they **published** at the time. Most results come from case studies written between 2016 and 2021; they describe the change those companies measured, not a promise for every site. Know a PWA that belongs here? [Tell us](/contact/). We list apps that are installable from the browser today, or that published a notable case study. The directory is also available as [JSON](/data/directory.json). --- # PWA browser support table (November 2026) URL: https://www.pwa.live/browser-support/ Thirty-two features across seven browsers, reviewed by hand. This table shows what works where, for the features PWAs use most. We review it by hand against browser release notes and standards trackers, and add notes where support is partial. For the very latest status of a single API, check MDN or caniuse.com, and test on real devices. ## How to read it - **Yes**: works in current versions. - **Partial**: works with conditions; the note says which. - **No**: not supported. Build a fallback. - **Varies**: depends on version or device; test it. "Chrome / Edge desktop" also covers Opera, Brave and other Chromium browsers on Windows, macOS, Linux and ChromeOS, which usually match. On iPhone and iPad every browser uses Safari's engine, so Chrome, Edge and Firefox on iOS have the Safari iOS column's support. Not sure what your own browser supports? Run the [feature detector](/tools/feature-detector/). --- # Progressive Web App FAQs URL: https://www.pwa.live/faqs/ Short answers to the questions we hear most. The questions we hear most about Progressive Web Apps, with short answers and links to the full guides. If yours is missing, [ask us](/contact/). Q: What is a Progressive Web App? A: A website that can also be installed like an app and keep working offline. It uses HTTPS, a web app manifest and usually a service worker. Read the full answer in our guide to what a PWA is. Q: Do PWAs work on iPhone and iPad? A: Yes. Users add them from the Share menu with Add to Home Screen. Since iOS 26, every site added to the Home Screen opens as a web app. Service workers and offline have worked since iOS 11.3, and push notifications since iOS 16.4 for Home Screen apps. Q: Can a PWA send push notifications? A: Yes, in Chrome, Edge, Firefox, Samsung Internet, Safari on Mac and Home Screen web apps on iPhone and iPad (iOS 16.4 and later). You need VAPID keys, a service worker and a server that sends messages. Q: Do I need a service worker to install a PWA? A: Not any more in Chrome (since version 108 on Android and 112 on desktop) or Safari. But without one, the installed app cannot work offline, so we still recommend it. Q: Can I put a PWA in Google Play or the App Store? A: Google Play and the Microsoft Store accept PWAs with simple packaging (a Trusted Web Activity or an MSIX package, both made easily with PWABuilder). Apple's App Store needs a native wrapper that adds real native features. Q: Are PWAs good for SEO? A: A PWA is a website, so it can rank like any other if each page has its own URL and content that loads without the service worker. Googlebot does not use service workers. Q: Which framework is best for a PWA? A: Any of them. Use vite-plugin-pwa with Vite-based stacks, Serwist with Next.js, @angular/pwa with Angular, or a hand-written service worker for simple sites. Q: Did Lighthouse stop checking PWAs? A: Yes. Lighthouse 12 (2024) removed the PWA category. Use Chrome DevTools, Application, Manifest for installability, and a checker such as the PWA.live checker or PWABuilder. Q: Is PWA.live free? A: Yes. Every guide and tool is free, with no sign-up. We do not run ads or affiliate links. Q: Do your tools upload my files? A: No. All tools except the PWA checker run entirely in your browser. The checker fetches the public URL you enter from our server, reads its HTML and manifest, and does not store the results. Q: Is PWA.live affiliated with Google, Apple or Microsoft? A: No. We are independent and vendor-neutral. Q: Can I use PWA.live offline? A: Yes. Install it, or just visit a few pages: our service worker keeps them. Each guide has a Save for offline button, and the learn page can save every guide at once. --- # The PWA.live icon set URL: https://www.pwa.live/gallery/ Every icon on the site, and what it stands for. We draw every icon on PWA.live ourselves, in code, on the same 120 by 120 grid with the same stroke and two accent colours, so they stay sharp at any size and follow the light and dark themes. No stock art and no generated images. --- # PWA.live blog: news and opinion on Progressive Web Apps URL: https://www.pwa.live/blog/ News, lessons and opinion. --- # What is a Progressive Web App (PWA)? URL: https://www.pwa.live/learn/what-is-a-pwa/ A website that installs like an app and keeps working offline. A **Progressive Web App (PWA)** is a website built so that it can also behave like an installed app. You open it with a link like any other site, and when you want to, you can **install** it. After that it gets its own icon, opens in its own window without the browser's address bar, shows up in the app switcher, and can keep working when the network is slow or gone. There is no separate "PWA format" and nothing to download from an app store. A PWA is your normal website, written in HTML, CSS and JavaScript, plus a few extra pieces that browsers recognise. ## The three building blocks 1. **HTTPS.** Every PWA feature needs a secure origin. (`localhost` counts as secure while you develop.) 2. **A web app manifest.** A small JSON file that tells the browser the app's name, icons, colours, start page and how it should open. It is what makes a site [installable](/learn/install-criteria/). See [the web app manifest](/learn/web-app-manifest/). 3. **A service worker.** A script that runs in the background, between your pages and the network. It can store files and pages, answer requests when offline, receive push messages and sync data later. See [service workers explained](/learn/service-workers-explained/). You can install a site with only the first two in Chrome and Edge, and on iOS and iPadOS 26 any site can be added to the Home Screen as a web app. The service worker is what turns "installed" into "reliable": without it, an installed app still shows the browser's offline error when the connection drops. ## Why "progressive"? The name comes from **progressive enhancement**. A PWA works for everyone in any browser as a normal website, then adds more where the browser supports it: offline support, installation, push notifications, file handling and so on. Nobody is locked out; people with newer browsers simply get more. The term was coined in 2015 by Chrome engineer Alex Russell and designer Frances Berriman to describe sites that were "just websites" but took advantage of new browser features. Read the full story in [a short history of PWAs](/learn/history-of-pwas/). ## What a PWA can do in 2026 - **Install** on Android, iOS, iPadOS, Windows, macOS, ChromeOS and Linux, with its own icon and window. - **Work offline** or on bad networks by serving pages and data from its own caches. - **Send push notifications**, including on iPhone and iPad (for apps added to the Home Screen). - **Show a badge** on its icon, open files, receive shared content, handle custom links and run full-screen. - **Store a lot of data** locally in IndexedDB and the Origin Private File System. - **Be listed in app stores**: Google Play (via a [Trusted Web Activity](/learn/google-play-twa/)), the [Microsoft Store](/learn/microsoft-store/) and others. What PWAs still cannot do everywhere is listed honestly in our [browser support table](/browser-support/): background sync is Chromium-only, iOS has no install prompt you can trigger from JavaScript, and some hardware APIs exist only in Chrome and Edge. ## PWA or native app? For most content, commerce, productivity and internal business apps, a PWA reaches more people for less work: one codebase, instant updates, no store review, and every page is a link you can share and that search engines can index. Native apps still win when you need deep platform integration, heavy 3D, some background processing, or the visibility of the app stores. Many companies run both. Compare them in detail in [PWA vs native vs hybrid](/learn/pwa-vs-native/). ## Real examples Pinterest, Starbucks, Uber, Spotify, X (formerly Twitter), YouTube Music, Microsoft Outlook, Adobe Photoshop on the web and Squoosh are all installable web apps. Browse more than forty of them, with their published results, in the [PWA directory](/directory/). ## Where to go next - Building your first one? Follow [build a PWA from scratch](/learn/build-a-pwa-from-scratch/). - Want the checklist? See [the PWA checklist](/learn/pwa-checklist/). - Want to check an existing site? Use the [PWA checker](/tools/pwa-checker/). Q: Is a PWA an app or a website? A: Both. It is a website that browsers can also install, so it opens in its own window with its own icon. The same URL works in a browser tab. Q: Do PWAs work on iPhone? A: Yes. Safari and other browsers on iOS and iPadOS can add a PWA to the Home Screen, where it opens as a standalone app, works offline with a service worker and, since iOS 16.4, can receive push notifications. Q: Do I need an app store for a PWA? A: No. People install it straight from the browser. You can also list it in Google Play, the Microsoft Store and other stores if you want to. Q: Is a PWA free to build? A: There are no licence or store fees. You need HTTPS hosting and the time to add a manifest and a service worker. --- # PWA vs native app vs hybrid: which should you build? URL: https://www.pwa.live/learn/pwa-vs-native/ An honest comparison, with no favourite. There is no single right answer. The choice depends on who your users are, which device features you need and how you plan to reach people. Here is how the three approaches compare in 2026. ## At a glance | | PWA | Native (Swift, Kotlin) | Hybrid (Capacitor, React Native, Flutter) | | --- | --- | --- | --- | | Codebase | One web codebase | One per platform | Mostly one | | Install | From the browser, optional store listing | App stores | App stores | | Updates | Instant, on next visit | Store review and user update | Store review (some allow live JS updates) | | Linkable and indexable | Yes, every page has a URL | No (deep links only) | No (deep links only) | | Size | Usually kilobytes to a few MB | Often 30 to 200 MB | Often 10 to 100 MB | | Offline | Yes, with a service worker | Yes | Yes | | Push notifications | Yes (iOS: Home Screen apps, 16.4+) | Yes | Yes | | Device APIs | Good, best in Chromium | Everything | Nearly everything via plugins | | Background work | Limited | Full | Full | | Store discovery | Optional (Play, Microsoft Store) | Yes | Yes | | Typical cost | Lowest | Highest | Medium | ## When a PWA is the better choice - **Reach matters more than store presence.** Every link you share opens the app straight away, with no install step in the way. That is why so many [published case studies](/directory/) report big gains in conversion. - **Your users have older phones, little storage or patchy data.** Flipkart found that many visitors to its PWA had uninstalled the native app to save space. - **You already have a good website.** Adding a manifest and a service worker is days of work, not months. - **You ship often.** No review queue, no waiting for users to update. - **It is an internal or B2B tool.** No store accounts, no MDM gymnastics; just send a link. ## When native is the better choice - You need **continuous background work** (fitness tracking, navigation with the screen off, VoIP). - You depend on **APIs the web does not have**, or that only Chromium has (for example some Bluetooth or NFC use cases on iPhone). - You need **top-end 3D or camera processing** and every millisecond counts. - **App store visibility** is your main acquisition channel. ## And hybrid? Hybrid frameworks such as [Capacitor](/open-source/capacitor/), React Native and Flutter give you store apps from one codebase. Capacitor is especially interesting because it wraps a real web app, so the same code can ship as a PWA **and** as store apps. ## The common answer: both Many companies keep a native app for their most loyal users and a PWA for everyone else: first-time visitors, people on low-end phones and anyone who arrives from search or a shared link. MakeMyTrip and Flipkart both describe this "and, not or" approach in their case studies. If you go the PWA route, you can still be in the stores: see [PWAs in app stores](/learn/pwas-in-app-stores/). --- # A short history of Progressive Web Apps, 2007 to 2026 URL: https://www.pwa.live/learn/history-of-pwas/ From "sweet solution" to every site as an app. Web apps that behave like real apps are older than the App Store. Here are the moments that shaped them. ## The timeline | Year | What happened | | --- | --- | | 2007 | The first iPhone launches without third-party apps. Apple tells developers to build web apps for Safari instead. | | 2008 | iPhone OS 1.1.3 adds **Add to Home Screen**; sites with the right meta tag open full-screen. The App Store opens later the same year. | | 2010 to 2013 | AppCache (later removed) offers a first, fragile way to work offline. The Financial Times launches its HTML5 web app (2011). | | 2014 | The **service worker** specification is drafted. | | 2015 | Chrome ships service workers and push. Alex Russell and Frances Berriman coin **"Progressive Web App"**. Flipkart Lite launches. | | 2016 | Google promotes PWAs at I/O and Chrome Dev Summit; Housing.com, AliExpress and others publish results. | | 2017 | **Twitter Lite** becomes the default mobile web experience. Pinterest, Starbucks, Uber, Tinder and Trivago launch PWAs. | | 2018 | **iOS 11.3** and Safari 11.1 add service workers and the web app manifest. Microsoft starts listing PWAs in the Store. Chrome begins desktop install. | | 2019 | **Trusted Web Activities** let PWAs ship in Google Play. Desktop PWAs arrive on all Chrome desktop platforms. | | 2020 | The new Chromium-based **Microsoft Edge** brings full PWA support to Windows. | | 2021 | Firefox removes its experimental desktop "site-specific browser" feature. | | 2022 to 2023 | Chrome relaxes its install criteria: a service worker is no longer needed to install from the menu (Chrome 108 on Android, 112 on desktop). The [capabilities project](/learn/device-apis/) keeps adding APIs. | | 2023 | **iOS and iPadOS 16.4** bring Web Push, the Badging API and manifest `id` to Home Screen web apps, and let other browsers add apps to the Home Screen. **Safari 17** on macOS Sonoma adds **Add to Dock**. | | 2024 | Apple announces it will drop Home Screen web apps in the EU with iOS 17.4, then reverses the decision before release. **Lighthouse 12** removes its PWA category. | | 2025 | Firefox brings web apps back on Windows (Firefox 143, "taskbar tabs"). **iOS and iPadOS 26** open every site added to the Home Screen as a web app by default. | | 2026 | PWAs install on every major platform. Work focuses on better install UI, isolated web apps and more device APIs. | ## Three lessons from the history 1. **Install was never the hard part; reliability was.** AppCache failed because it was all or nothing. Service workers succeeded because they let developers decide, request by request. 2. **The web catches up slowly, then all at once.** Push on iPhone took eight years from Chrome's first implementation, and then it simply worked. 3. **Policy matters as much as technology.** The 2024 EU episode showed that platform rules can switch features off overnight, and that developers and regulators can switch them back on. Want the current state rather than the history? See the [browser support table](/browser-support/) and [PWAs on iPhone and iPad](/learn/pwa-on-ios/). --- # The business case for a PWA: published results and when it pays off URL: https://www.pwa.live/learn/when-to-build-a-pwa/ What companies actually measured after launching a PWA. Most of the famous PWA numbers come from 2016 to 2021, when large companies rebuilt slow mobile sites as PWAs. They are worth reading carefully: the gains came from **making the site fast and reliable**, and installability and push added to that. ## Published results | Company | What they reported | Source | | --- | --- | --- | | [Twitter Lite](/directory/twitter-lite/) | 65% more pages per session, 75% more Tweets sent, 20% lower bounce rate | Google case study, 2017 | | [Pinterest](/directory/pinterest/) | Core engagements up 60%, user-generated ad revenue up 44%, time spent up 40% | Pinterest engineering, 2017 | | [Flipkart](/directory/flipkart/) | 3x time on site, 40% higher re-engagement, 70% more conversions from Add to Home Screen visitors | Google case study | | [AliExpress](/directory/aliexpress/) | 104% more conversions for new users, 2x pages per session, 74% more time per session | Google case study | | [BookMyShow](/directory/bookmyshow/) | Over 80% more conversions; the PWA is 54x smaller than the Android app | Google case study | | [MakeMyTrip](/directory/makemytrip/) | 3x conversion rate, 38% faster page loads | Google case study | | [Trivago](/directory/trivago/) | Over 500,000 people added it to their home screen; 97% more clickouts to hotel offers | Google case study | | [Starbucks](/directory/starbucks/) | Doubled daily active web users; the PWA is a tiny fraction of the iOS app's size | Starbucks and its agency | | [OLX](/directory/olx/) | 250% more re-engagement with push, 80% lower bounce rate | Google case study | | [Rakuten 24](/directory/rakuten-24/) | Installed users visited 310% more often and converted 200% more | Google case study, 2020 | Each entry in the [PWA directory](/directory/) links to the original source. ## When a PWA pays off - **Mobile web is a big share of your traffic** and it converts worse than desktop or your app. - **Your users are on mid-range phones or slow networks**, or in markets where storage is tight. - **Your app is used often but not daily**: too often for a bookmark, not often enough to justify a 100 MB download. - **You already maintain a website** and do not want three codebases. ## When it does not - Your traffic is mostly loyal, daily users who already have your native app. - The features you need are not on the web, or not on iOS (check the [support table](/browser-support/)). - Your site is slow for reasons a service worker cannot fix, such as heavy JavaScript. Fix performance first: see [PWA performance](/learn/pwa-performance/). ## How to measure your own Track installs, launches from the installed app and offline sessions separately from normal web traffic. Our guide to [PWA analytics](/learn/pwa-analytics/) shows how to send `display-mode`, install and offline events to GA4 or any analytics tool. --- # The PWA checklist: 30 things to check before you launch URL: https://www.pwa.live/learn/pwa-checklist/ Everything to tick off before launch, in one list. Use this list before every launch. Each item links to the guide that explains it. Our [PWA checker](/tools/pwa-checker/) tests many of them automatically. ## Basics - Served over **HTTPS**, with HTTP redirecting to HTTPS and no mixed content. [Security](/learn/pwa-security/) - Every page works with JavaScript off or broken, at least enough to read the content. [Progressive enhancement](/learn/what-is-a-pwa/) - Pages are **responsive** from 320 px to wide desktop screens. ## Manifest - Linked from every page with ``. [Manifest](/learn/web-app-manifest/) - Has `name`, `short_name` (12 characters or fewer), `start_url`, `display` and `id`. [id, scope and start_url](/learn/manifest-id-scope-start-url/) - Icons at **192 x 192** and **512 x 512**, plus a **maskable** icon. [Icons](/learn/icons-and-maskable-icons/) - `theme_color` and `background_color` match your design. - `description`, `screenshots` (wide and narrow) and `categories` for the richer install dialog. [Richer install UI](/learn/richer-install-ui/) - Useful `shortcuts` to the two or three things people do most. ## Service worker - Registered from a file at the root (`/sw.js`) so it controls the whole site. [Service workers](/learn/service-workers-explained/) - App shell precached; pages use **network first** and fall back to a cache. [Caching strategies](/learn/caching-strategies/) - A custom **offline page** instead of the browser's error. [Offline page](/learn/offline-fallback-page/) - Old caches deleted when a new version activates. - A clear **update** flow: the page tells the visitor when a new version is ready. [Lifecycle and updates](/learn/service-worker-lifecycle/) - `/sw.js` itself is served with `Cache-Control: no-cache`. ## Install - Install works in Chrome, Edge and Samsung Internet. [Install criteria](/learn/install-criteria/) - Your own install button for Chromium browsers, shown only when installing is possible. [Install button](/learn/custom-install-button/) - Instructions for iPhone and iPad users. [Install on iOS](/learn/install-on-ios/) - Standalone mode looks right: no "back" dead ends, safe areas respected, links outside your scope open in the browser. [Display modes](/learn/display-modes/) ## iOS details - `apple-touch-icon` (180 x 180, no transparency). [iOS](/learn/pwa-on-ios/) - `` if your name is long. - Push asks for permission only after a user gesture, and only in the installed app. ## Quality - Good Core Web Vitals on a mid-range Android phone. [Performance](/learn/pwa-performance/) - Keyboard and screen reader friendly, including your install and update prompts. - Every page has its own URL, title and description; the service worker never hides content from crawlers. [SEO](/learn/pwa-seo/) - A content security policy, and no secrets in cached responses. [Security](/learn/pwa-security/) - Tested offline, on slow 3G, after an update and after reinstalling, on a real Android phone and a real iPhone. [Testing](/learn/testing-pwas/) - Analytics can tell installed launches from browser visits. [Analytics](/learn/pwa-analytics/) --- # Build a PWA from scratch: a complete tutorial with no framework URL: https://www.pwa.live/learn/build-a-pwa-from-scratch/ From index.html to an installable, offline app in seven steps. This tutorial turns a plain static site into a complete PWA. No framework, no build step: just files you can read. It takes about an hour. You need: a folder with an `index.html`, a local web server (for example `npx serve` or `python3 -m http.server`) and Chrome or Edge for DevTools. `localhost` counts as a secure origin, so you do not need HTTPS until you deploy. ## Step 1: a page that works without JavaScript ```html Notes

Notes

...
``` ## Step 2: the manifest Create `/manifest.webmanifest`. Our [manifest generator](/tools/manifest-generator/) can write it for you. ```json { "id": "/", "name": "Notes", "short_name": "Notes", "description": "Quick notes that work offline.", "start_url": "/?source=pwa", "scope": "/", "display": "standalone", "background_color": "#F4F6FB", "theme_color": "#5A0FC8", "icons": [ { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" }, { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }, { "src": "/icons/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" } ] } ``` ## Step 3: icons Make a 512 x 512 PNG and a maskable version with the logo inside the central 80%. The [icon generator](/tools/icon-generator/) makes every size from one image, and the [maskable icon preview](/tools/maskable-icon-preview/) shows how it will be cropped. ## Step 4: the service worker Create `/sw.js` at the root of the site. It precaches the app shell, serves pages network-first and falls back to an offline page. ```js const VERSION = 'v1'; const SHELL = ['/', '/offline.html', '/app.css', '/app.js', '/icons/icon-192.png']; self.addEventListener('install', (event) => { event.waitUntil(caches.open('shell-' + VERSION).then((c) => c.addAll(SHELL))); }); self.addEventListener('activate', (event) => { event.waitUntil(caches.keys().then((keys) => Promise.all(keys.filter((k) => !k.endsWith(VERSION)).map((k) => caches.delete(k))))); self.clients.claim(); }); self.addEventListener('fetch', (event) => { const req = event.request; if (req.method !== 'GET') return; if (req.mode === 'navigate') { event.respondWith(fetch(req).then((res) => { const copy = res.clone(); caches.open('pages-' + VERSION).then((c) => c.put(req, copy)); return res; }).catch(async () => (await caches.match(req)) || caches.match('/offline.html'))); return; } event.respondWith(caches.match(req).then((hit) => hit || fetch(req))); }); self.addEventListener('message', (e) => { if (e.data === 'SKIP_WAITING') self.skipWaiting(); }); ``` The [service worker generator](/tools/service-worker-generator/) builds a fuller version with the strategies you choose. Read [caching strategies](/learn/caching-strategies/) to understand the options. ## Step 5: register it, and offer updates ```js // app.js if ('serviceWorker' in navigator) { addEventListener('load', async () => { const reg = await navigator.serviceWorker.register('/sw.js'); const ask = (worker) => { if (confirm('A new version is ready. Reload now?')) worker.postMessage('SKIP_WAITING'); }; if (reg.waiting) ask(reg.waiting); reg.addEventListener('updatefound', () => { const w = reg.installing; w.addEventListener('statechange', () => { if (w.state === 'installed' && navigator.serviceWorker.controller) ask(w); }); }); let reloaded = false; navigator.serviceWorker.addEventListener('controllerchange', () => { if (!reloaded) { reloaded = true; location.reload(); } }); }); } ``` In a real app, use a small banner instead of `confirm()`. See [service worker lifecycle and updates](/learn/service-worker-lifecycle/). ## Step 6: an install button ```js let deferred; const btn = document.getElementById('install'); addEventListener('beforeinstallprompt', (e) => { e.preventDefault(); deferred = e; btn.hidden = false; }); btn.addEventListener('click', async () => { btn.hidden = true; deferred.prompt(); await deferred.userChoice; deferred = null; }); addEventListener('appinstalled', () => { btn.hidden = true; }); ``` This works in Chromium browsers. On iPhone and iPad, show short instructions instead: see [install on iOS](/learn/install-on-ios/). ## Step 7: test it 1. Open DevTools, **Application**: check the manifest is parsed and the service worker is activated. 2. Tick **Offline** in the Network panel and reload: you should see your page, or your offline page. 3. Install the app from the address bar icon and open it. 4. Change `VERSION`, reload, and check the update prompt appears. 5. Run the [PWA checker](/tools/pwa-checker/) on your deployed URL. You now have a real PWA. Next, read [PWA performance](/learn/pwa-performance/) and the [PWA checklist](/learn/pwa-checklist/). --- # The web app manifest: every field explained URL: https://www.pwa.live/learn/web-app-manifest/ The JSON file that makes a site installable. The **web app manifest** is a JSON file that describes your app to the browser and the operating system. It decides the name under the icon, the icon itself, the splash screen colours, the page the app opens on and whether it opens in a window or a tab. Link it from every page: ```html ``` Serve it with the `application/manifest+json` content type (`application/json` also works). The file name does not matter; `manifest.webmanifest` and `manifest.json` are both common. ## A complete example ```json { "id": "/", "name": "PWA.live", "short_name": "PWA.live", "description": "The independent reference for Progressive Web Apps.", "start_url": "/?source=pwa", "scope": "/", "display": "standalone", "display_override": ["window-controls-overlay", "standalone"], "orientation": "any", "background_color": "#F4F6FB", "theme_color": "#5A0FC8", "lang": "en", "dir": "ltr", "categories": ["developer", "education"], "icons": [ { "src": "/icons/192.png", "sizes": "192x192", "type": "image/png" }, { "src": "/icons/512.png", "sizes": "512x512", "type": "image/png" }, { "src": "/icons/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" } ], "screenshots": [ { "src": "/shots/wide.png", "sizes": "1280x800", "type": "image/png", "form_factor": "wide", "label": "Home screen" }, { "src": "/shots/narrow.png", "sizes": "750x1334", "type": "image/png", "form_factor": "narrow", "label": "On a phone" } ], "shortcuts": [ { "name": "PWA checker", "url": "/tools/pwa-checker/", "icons": [{ "src": "/icons/s-check.png", "sizes": "96x96" }] } ] } ``` This site's own manifest is at [/manifest.webmanifest](/manifest.webmanifest). ## Identity and launch | Field | What it does | | --- | --- | | `name` | Full name, shown in the install dialog and app lists. | | `short_name` | Shown under the icon when space is tight. Keep it to about 12 characters. | | `id` | The app's permanent identity. If you omit it, browsers use `start_url`, which breaks if you ever change it. Set it once and never change it. | | `start_url` | The page that opens when the app launches. A query string such as `?source=pwa` helps analytics. | | `scope` | Which URLs belong to the app. Links outside it open in the browser. Defaults to the folder of `start_url`. | | `description` | Shown in richer install dialogs and app stores. | Details and pitfalls: [id, scope and start_url](/learn/manifest-id-scope-start-url/). ## Appearance | Field | What it does | | --- | --- | | `display` | `fullscreen`, `standalone`, `minimal-ui` or `browser`. See [display modes](/learn/display-modes/). | | `display_override` | An ordered list of modes to try first, such as `window-controls-overlay` or `tabbed`. | | `orientation` | Lock to `portrait` or `landscape` when installed. Use `any` unless you really need a lock. | | `theme_color` | Colour of the title bar and status bar. The `` tag in the page overrides it. | | `background_color` | Colour of the splash screen while the app loads. Match your page background. | | `icons` | Icons in several sizes, with `purpose` `any` or `maskable`. See [icons and maskable icons](/learn/icons-and-maskable-icons/). | ## Install experience | Field | What it does | | --- | --- | | `screenshots` | Images for the richer install dialog in Chrome and Edge. Give `form_factor` `wide` for desktop and `narrow` for mobile. | | `shortcuts` | Quick actions on a long-press or right-click of the app icon. | | `categories` | Hints for stores and app lists. | | `prefer_related_applications` | If `true`, the browser suggests your native app instead. Leave it out or `false`. | | `related_applications` | Your native apps, for `getInstalledRelatedApps()`. | See [richer install UI](/learn/richer-install-ui/). ## Operating system integration | Field | What it does | Support | | --- | --- | --- | | `share_target` | Lets the app appear in the system share sheet. | Chromium on Android and ChromeOS | | `file_handlers` | Lets the app open files of given types. | Chromium desktop | | `protocol_handlers` | Lets the app handle links such as `web+recipe://`. | Chromium desktop | | `launch_handler` | Decides whether a launch opens a new window or reuses one. | Chromium | | `edge_side_panel` | Lets the app open in Edge's sidebar. | Edge | See [share target and Web Share](/learn/share-target-and-web-share/), [file handling](/learn/file-handling/) and [desktop integration](/learn/desktop-integration/). ## Common mistakes - **No 512 px icon**, or icons that are really a different size from what `sizes` says. - **A `start_url` outside the `scope`**: browsers ignore the manifest. - **Changing `start_url` without an `id`**: users end up with two copies of your app. - **Caching the manifest forever**: browsers check it for updates, so serve it with a short cache time. Check yours with the [manifest validator](/tools/manifest-validator/), or generate one with the [manifest generator](/tools/manifest-generator/). Q: Should the file be called manifest.json or manifest.webmanifest? A: Either works. The specification suggests the .webmanifest extension, served as application/manifest+json, but browsers accept any name and the application/json type. Q: Can I have one manifest per language? A: Yes. Link a different manifest from each language version, with translated name, short_name and description. Keep the same id if you want them to count as one app, or different ids for separate apps. --- # PWA icons and maskable icons: sizes, safe zone and iOS URL: https://www.pwa.live/learn/icons-and-maskable-icons/ Which sizes you really need, and why your logo gets cropped. Icons are the part of a PWA people see most, and the part most often done wrong. Here is what you actually need. ## The minimum ```json "icons": [ { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" }, { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }, { "src": "/icons/maskable-192.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable" }, { "src": "/icons/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" } ] ``` Plus, in your HTML: ```html ``` Chrome needs at least a **192 px** and a **512 px** icon to offer installation. The browser scales them for everything else. ## What "maskable" means Android, ChromeOS and some launchers cut every app icon into the same shape: a circle, a squircle, a rounded square or a teardrop, depending on the device. A normal icon gets shrunk and placed on a white circle, which looks out of place. A **maskable** icon is a full-bleed square with your logo kept inside a **safe zone**: a circle in the middle whose diameter is **80%** of the icon's width. Anything outside that circle may be cropped. - Fill the whole square with your background colour. No transparency. - Keep the logo inside the central 80% (for a 512 px icon, a circle of 409 px). - Provide it as a **separate** icon with `"purpose": "maskable"`. Avoid `"purpose": "any maskable"`: the same image then gets used as a normal icon, where it looks too small or too padded. Test yours with our [maskable icon preview](/tools/maskable-icon-preview/). ## Monochrome icons `"purpose": "monochrome"` is for a single-colour silhouette that the system can tint, for example in notification badges. Support is limited; it is optional. ## iPhone and iPad iOS uses the `apple-touch-icon` link, **not** the manifest icons, for the Home Screen in most versions. Make it **180 x 180**, opaque (iOS fills transparency with black), with your logo slightly padded. iOS rounds the corners itself. ## Favicons A single **SVG favicon** covers modern browsers and can even switch colours for dark mode with a media query inside the SVG. Keep a 32 px PNG for older browsers and tools. ## Generate them all Use the [icon generator](/tools/icon-generator/) on this site (it runs in your browser and makes a zip), or the open-source [pwa-asset-generator](/open-source/pwa-asset-generator/) in your build. Then paste the result into your manifest. ## Checklist - 192 and 512 px PNGs, plus maskable versions. - An opaque 180 px apple-touch-icon. - An SVG favicon and a 32 px PNG. - The `sizes` value matches the real pixel size of each file. - Icons are served with long cache times and new file names when they change. --- # Display modes: standalone, fullscreen, minimal-ui, window controls overlay and tabbed URL: https://www.pwa.live/learn/display-modes/ How your app looks once it is installed, and how to detect it. The `display` field in the [manifest](/learn/web-app-manifest/) decides how much browser interface surrounds your installed app. | Mode | What users see | Typical use | | --- | --- | --- | | `fullscreen` | No browser UI and no status bar | Games, kiosks, media | | `standalone` | Its own window, no address bar | Most apps | | `minimal-ui` | Its own window with a small set of browser controls (back, reload) | Content apps that need navigation | | `browser` | A normal browser tab | Not installable as an app | Browsers fall back along that list: if a mode is not supported, the next one down is used. ## display_override `display_override` is an ordered list of modes to try **before** `display`. It is how you opt in to newer modes without breaking older browsers: ```json "display": "standalone", "display_override": ["window-controls-overlay", "tabbed", "standalone"] ``` - **`window-controls-overlay`** (Chromium desktop): your content extends into the title bar area, and the window controls float over it. You draw your own title bar. - **`tabbed`** (Chromium desktop, experimental): the app window gets tabs. ## Detecting the mode CSS: ```css @media (display-mode: standalone) { .install-button { display: none; } .app-header { padding-top: env(safe-area-inset-top); } } ``` JavaScript: ```js const installed = matchMedia('(display-mode: standalone)').matches || navigator.standalone === true; // older iOS matchMedia('(display-mode: standalone)').addEventListener('change', (e) => { console.log('standalone now', e.matches); }); ``` See [detect an installed PWA](/learn/detect-installed-pwa/) for analytics. ## Designing for standalone - **Navigation**: without an address bar or back button (on iOS, for example), every page needs a way back. Breadcrumbs and a clear home link help. - **Safe areas**: add `viewport-fit=cover` to the viewport meta tag and pad with `env(safe-area-inset-*)` so content is not hidden behind notches and rounded corners. - **External links**: links outside your `scope` open in the browser automatically on most platforms. Mark them clearly. - **Pull to refresh** may not exist; offer a refresh where it matters. - **Title bar colour** comes from `theme_color`, or from `` per page, which can even change with `media="(prefers-color-scheme: dark)"`. ## Window controls overlay in practice ```css .titlebar { position: fixed; left: env(titlebar-area-x, 0); top: env(titlebar-area-y, 0); width: env(titlebar-area-width, 100%); height: env(titlebar-area-height, 40px); -webkit-app-region: drag; app-region: drag; } .titlebar button { -webkit-app-region: no-drag; app-region: no-drag; } ``` More in [desktop integration](/learn/desktop-integration/). --- # Manifest id, scope and start_url: get them right the first time URL: https://www.pwa.live/learn/manifest-id-scope-start-url/ Three small fields that are very hard to change later. These three fields decide your app's identity and boundaries. Get them right before launch, because fixing them later affects every user who has already installed your app. ## id: who the app is The `id` is the app's permanent identity. Browsers and stores use it to recognise "the same app" across updates. ```json "id": "/" ``` - It is resolved against your origin, so `"/"` becomes `https://example.com/`. - If you leave it out, the browser uses `start_url` as the id. Then, if you ever change `start_url` (to add `?source=pwa`, for example), people get a **second, separate app**. - **Set it on day one and never change it.** If you already shipped without an id, set `id` to your current `start_url` exactly. Chrome DevTools > Application > Manifest shows the computed id and suggests the value. ## start_url: where it opens ```json "start_url": "/?source=pwa" ``` - It must be inside `scope`, otherwise the browser ignores the manifest. - A query parameter lets you count launches from the installed app in analytics. It must not change the page content, or your offline cache needs to store that exact URL too. - Make sure the start page **works offline**: precache it in the service worker. ## scope: where the app ends ```json "scope": "/" ``` - Navigations **inside** the scope stay in the app window. - Navigations **outside** it open in the browser, or show a bar with the URL, depending on the platform. - If you omit it, the scope is the folder that contains `start_url`. `/app/index.html` gives a scope of `/app/`. The service worker has its own, separate scope (the folder it is served from, unless you use the `Service-Worker-Allowed` header). Keep the two the same. ## Patterns **One app for the whole site** (most common): ```json { "id": "/", "start_url": "/?source=pwa", "scope": "/" } ``` **An app in a sub-folder** of a bigger site: ```json { "id": "/app/", "start_url": "/app/", "scope": "/app/" } ``` **Several languages, one app**: keep one `id`, let `start_url` be the language root, and put the language in the scope only if each language should be a separate app. ```json { "id": "/", "start_url": "/es/?source=pwa", "scope": "/" } ``` **Several apps on one origin**: give each one its own `id` and its own `scope`, and make sure their scopes do not overlap. Check your values with the [manifest validator](/tools/manifest-validator/). --- # Richer install UI: screenshots, description and shortcuts URL: https://www.pwa.live/learn/richer-install-ui/ Turn the plain install box into a small app store page. By default, Chrome's install dialog shows only your icon, name and origin. Add a `description` and `screenshots` to the [manifest](/learn/web-app-manifest/) and Chrome and Edge show a **richer install dialog** that looks like an app store listing, with a carousel of images. ## Screenshots ```json "description": "Guides, browser support and free tools for Progressive Web Apps.", "screenshots": [ { "src": "/shots/wide-1.png", "sizes": "1280x800", "type": "image/png", "form_factor": "wide", "label": "Guides and tools" }, { "src": "/shots/narrow-1.png", "sizes": "750x1334", "type": "image/png", "form_factor": "narrow", "label": "Reading a guide offline" } ] ``` - **`form_factor: "wide"`** screenshots are used on desktop, **`"narrow"`** on mobile. Provide at least one of each. - Width and height must be between **320 and 3840 px**, and the longer side no more than **2.3 times** the shorter one. - Each screenshot in a group should have the same aspect ratio. - Use real screens from your app, not marketing art. Add a short `label` for screen readers. - Up to about eight are shown; three or four is plenty. Use our [screenshot sizes check](/tools/manifest-validator/) (part of the manifest validator) to catch size mistakes. ## Shortcuts Shortcuts appear when people long-press (Android) or right-click (desktop) your app icon, and in the Windows taskbar jump list. ```json "shortcuts": [ { "name": "New note", "short_name": "New", "description": "Start a blank note", "url": "/notes/new?source=shortcut", "icons": [{ "src": "/icons/new-96.png", "sizes": "96x96", "type": "image/png" }] } ] ``` - Keep to **two to four** shortcuts for the most common tasks. - Give each a 96 x 96 icon. - URLs must be inside the app's `scope`. This site's manifest has four shortcuts: the PWA checker, the manifest generator, browser support and the open-source directory. Install PWA.live and right-click its icon to see them. ## Categories ```json "categories": ["productivity", "utilities"] ``` These are hints for stores and app lists. Use common lowercase words such as `books`, `business`, `education`, `entertainment`, `finance`, `food`, `games`, `health`, `lifestyle`, `music`, `news`, `photo`, `productivity`, `shopping`, `social`, `sports`, `travel` and `utilities`. --- # Workbox URL: https://www.pwa.live/open-source/workbox/ A set of libraries for service workers: precaching with revision hashes, routing, caching strategies, expiration, background sync and a window helper for updates. A set of libraries for service workers: precaching with revision hashes, routing, caching strategies, expiration, background sync and a window helper for updates. Many build tools and frameworks use it underneath. ## When to use it You want proven, well-documented building blocks for a service worker, or your build tool (webpack, Vite via vite-plugin-pwa, Workbox CLI) already generates one with it. ## Get started ```bash npm i -D workbox-cli && npx workbox-cli wizard ``` ```js import { registerRoute } from 'workbox-routing'; import { NetworkFirst } from 'workbox-strategies'; registerRoute(({ request }) => request.mode === 'navigate', new NetworkFirst({ cacheName: 'pages' })); ``` Source code, issues and documentation: [github.com/GoogleChrome/workbox](https://github.com/GoogleChrome/workbox). --- # Service workers explained: what they are and how they work URL: https://www.pwa.live/learn/service-workers-explained/ The script that makes a website reliable. A **service worker** is a JavaScript file that the browser runs in the background, separately from your pages. Once installed, it sits between your site and the network like a programmable proxy: every request your pages make, for HTML, CSS, images or API data, passes through it first. That one position is what makes PWAs reliable. The service worker can answer a request from its own cache, fetch it from the network, or build a response on the spot, so your app can open instantly and keep working offline. ## Key facts - It runs on its **own thread**, with no access to the DOM. It talks to pages with `postMessage`. - It is **event-driven**: the browser starts it when there is something to do (a request, a push message) and stops it when it is idle. Do not keep state in global variables; use the Cache API or IndexedDB. - It only works on **HTTPS** (and `localhost`). - It has a **scope**: it controls pages under the folder it is served from. A file at `/sw.js` controls the whole site; one at `/app/sw.js` controls only `/app/`. - It **does not control the page that registered it** until the next navigation, unless it calls `clients.claim()`. ## Registering one ```js if ('serviceWorker' in navigator) { window.addEventListener('load', () => { navigator.serviceWorker.register('/sw.js', { scope: '/' }) .then((reg) => console.log('Service worker scope:', reg.scope)) .catch((err) => console.error('Registration failed:', err)); }); } ``` Registering after `load` keeps the first visit fast: the worker downloads and installs while the visitor reads. ## The three events that matter ```js // 1. install: runs once per version. Precache what the app needs to start. self.addEventListener('install', (event) => { event.waitUntil(caches.open('shell-v1').then((cache) => cache.addAll(['/', '/offline.html', '/app.css', '/app.js']))); }); // 2. activate: the new version takes over. Clean up old caches. self.addEventListener('activate', (event) => { event.waitUntil(caches.keys().then((keys) => Promise.all(keys.filter((k) => k !== 'shell-v1').map((k) => caches.delete(k))))); }); // 3. fetch: every request from controlled pages. self.addEventListener('fetch', (event) => { event.respondWith(caches.match(event.request).then((hit) => hit || fetch(event.request))); }); ``` Other events: `message` (from pages), `push` and `notificationclick` ([push](/learn/web-push-notifications/)), `sync` and `periodicsync` ([background sync](/learn/background-sync/)), and `backgroundfetchsuccess` ([background fetch](/learn/background-fetch/)). ## What service workers can do - Serve pages and files from cache: [caching strategies](/learn/caching-strategies/) - Show a custom [offline page](/learn/offline-fallback-page/) - Receive [push messages](/learn/web-push-notifications/) and show notifications, even when no tab is open - Retry failed requests later with [Background Sync](/learn/background-sync/) - Download large files in the background with [Background Fetch](/learn/background-fetch/) - Speed up navigations with [navigation preload and streaming](/learn/service-worker-performance/) ## What they cannot do - Touch the DOM, or use `localStorage` or synchronous XHR. - Run forever: browsers stop idle workers after about 30 seconds, and limit long tasks. - Intercept requests from pages outside their scope, or the very first page load before installation. ## The lifecycle in one sentence A new service worker **installs**, then **waits** until no page uses the old version, then **activates** and starts handling fetches. Understanding that waiting step is the key to shipping updates without breaking things: read [the service worker lifecycle and updates](/learn/service-worker-lifecycle/). ## Do I write it by hand? For small sites, yes: it is a few dozen lines, and our [service worker generator](/tools/service-worker-generator/) writes a solid starting point. For bigger apps, libraries like [Workbox](/open-source/workbox/) and [Serwist](/open-source/serwist/) handle precache manifests, routing, expiration and edge cases: see [Workbox and Serwist](/learn/workbox-and-serwist/). --- # Serwist URL: https://www.pwa.live/open-source/serwist/ A modern fork of Workbox, started because Workbox development had slowed. A modern fork of Workbox, started because Workbox development had slowed. One serwist package with ES modules and TypeScript, plus maintained integrations for Next.js, Vite, SvelteKit and webpack. ## When to use it You are starting a new project with Next.js, or want Workbox-style features with a more actively developed codebase. ## Get started ```bash npm i -D serwist @serwist/next ``` ```js import { Serwist } from 'serwist'; const serwist = new Serwist({ precacheEntries: self.__SW_MANIFEST, clientsClaim: true, navigationPreload: true }); serwist.addEventListeners(); ``` Source code, issues and documentation: [github.com/serwist/serwist](https://github.com/serwist/serwist). --- # The service worker lifecycle and safe updates URL: https://www.pwa.live/learn/service-worker-lifecycle/ Why your update is "waiting", and how to ship new versions safely. Most service worker bugs are really lifecycle surprises. Learn these states and updates stop being mysterious. ## The states 1. **Parsed and installing.** The browser downloads the new `sw.js`. The `install` event runs: this is where you precache files. 2. **Installed, waiting.** The new version is ready, but an older version is still controlling open tabs. It waits. 3. **Activating.** When no tab uses the old version any more (all closed, or you told it to skip waiting), the new one activates. The `activate` event runs: delete old caches here. 4. **Activated.** It now handles `fetch` for every page in scope. 5. **Redundant.** Replaced, or installation failed. Why the wait? Because two versions of your app running side by side, with different caches, would break things. The browser keeps the old one until it is safe. ## How browsers find updates - On every **navigation** to a page in scope, the browser fetches `sw.js` and compares it byte by byte. If anything changed, a new version installs. - At most once every 24 hours, the HTTP cache is bypassed for this check, and since 2018 browsers ignore the HTTP cache for `sw.js` itself by default (`updateViaCache: 'imports'`). Serve it with `Cache-Control: no-cache` anyway. - You can also call `registration.update()`, for example when a tab becomes visible again. Changing an imported script, or a precached file, does **not** trigger an update unless `sw.js` itself changes. That is why build tools put a hash or a version in it. ## skipWaiting and clients.claim ```js self.addEventListener('install', () => self.skipWaiting()); // do not wait self.addEventListener('activate', (e) => e.waitUntil(self.clients.claim())); // take control now ``` - `skipWaiting()` activates the new version straight away, even if tabs use the old one. - `clients.claim()` makes the worker control open pages right away, including the very first page that registered it. Calling `skipWaiting()` unconditionally is fine **only** if old pages can cope with new cache contents. If a page from version 1 lazily loads a script that version 2 deleted, it breaks. The safe pattern is to **ask the user**. ## The "update available" pattern In the service worker: ```js self.addEventListener('message', (event) => { if (event.data && event.data.type === 'SKIP_WAITING') self.skipWaiting(); }); ``` In the page: ```js const reg = await navigator.serviceWorker.register('/sw.js'); const offer = (worker) => showBanner('A new version is ready.', 'Reload', () => worker.postMessage({ type: 'SKIP_WAITING' })); if (reg.waiting && navigator.serviceWorker.controller) offer(reg.waiting); reg.addEventListener('updatefound', () => { const w = reg.installing; w.addEventListener('statechange', () => { if (w.state === 'installed' && navigator.serviceWorker.controller) offer(w); }); }); const hadController = !!navigator.serviceWorker.controller; let reloading = false; navigator.serviceWorker.addEventListener('controllerchange', () => { if (!hadController || reloading) return; // first install: no reload reloading = true; location.reload(); }); ``` This is exactly what PWA.live does: when we publish a change, you see a small "new version" message with a Reload button. ## Clearing old caches Name caches with a version and delete the rest on activate: ```js const CURRENT = ['shell-v7', 'pages-v1', 'assets-v1']; self.addEventListener('activate', (event) => { event.waitUntil(caches.keys().then((keys) => Promise.all(keys.filter((k) => !CURRENT.includes(k)).map((k) => caches.delete(k))))); }); ``` ## Removing a service worker To retire one, deploy a `sw.js` that unregisters itself: ```js self.addEventListener('install', () => self.skipWaiting()); self.addEventListener('activate', async () => { for (const k of await caches.keys()) await caches.delete(k); await self.registration.unregister(); for (const c of await self.clients.matchAll({ type: 'window' })) c.navigate(c.url); }); ``` The `Clear-Site-Data: "storage"` response header also works, but it clears cookies and storage too. --- # Debugging service workers in Chrome, Edge, Firefox and Safari URL: https://www.pwa.live/learn/debugging-service-workers/ Where to look when the cache will not let go. ## Chrome and Edge DevTools Open DevTools, then the **Application** panel: - **Manifest**: shows parsed fields, icon previews, the computed `id`, and install warnings. Start here if the install button does not appear. - **Service workers**: status of each version, with buttons to **Update**, **Unregister**, push a test message, or trigger a sync. Tick **Update on reload** while developing so every reload installs the newest `sw.js`. **Bypass for network** skips the worker entirely. - **Storage**: shows usage, and **Clear site data** wipes caches, IndexedDB, cookies and the registration in one click. - **Cache storage**: browse every cache and entry; right-click to delete. - **Background services**: record push, sync, background fetch and notification events, even while DevTools is closed. In the **Network** panel, responses served by the worker show "(ServiceWorker)" in the Size column, and the **Offline** checkbox simulates no connection. `chrome://serviceworker-internals` and `edge://serviceworker-internals` list every registration in the browser. To debug the worker itself, pick its context in the console drop-down, or open `chrome://inspect/#service-workers`. ## Firefox `about:debugging#/runtime/this-firefox` lists service workers with **Inspect**, **Push** and **Unregister**. The Storage panel in DevTools shows Cache Storage and IndexedDB. Firefox for Android can be debugged from desktop over USB the same way. ## Safari Enable **Show features for web developers** in Safari settings, then use **Develop > Service Workers** to inspect each one. To debug a Home Screen web app on an iPhone or iPad, connect it to a Mac with a cable, enable Web Inspector on the device (Settings > Apps > Safari > Advanced), and pick the app under the device's name in the Develop menu. ## Android devices Connect the phone with USB debugging enabled and open `chrome://inspect` on your computer. Installed PWAs appear as their own targets. ## Common problems and fixes | Problem | Likely cause | Fix | | --- | --- | --- | | Changes do not show up | Old worker still active; new one waiting | Close all tabs, or use an update prompt. In development, tick Update on reload. | | Worker never updates | `sw.js` cached by a CDN or browser | Serve `sw.js` with `Cache-Control: no-cache`; check your CDN rules. | | `addAll` fails on install | One precached URL returned 404 or a redirect | Check every URL; `addAll` fails if any request fails. | | Offline shows the browser error | Navigation request not handled, or the offline page is not cached | Handle `request.mode === 'navigate'` and precache the offline page. | | Pages work but images are missing offline | Images not cached | Add a runtime cache for images. | | Scope error on register | Worker file is in a sub-folder | Move `sw.js` to the root, or send `Service-Worker-Allowed`. | | Works on localhost, not in production | Not HTTPS, or wrong MIME type | Serve over HTTPS with `Content-Type: application/javascript`. | | Logged-in users see someone else's page | Personalised HTML cached | Never cache personalised responses with a shared key. | ## A clean slate ```js // Paste in the page's console to remove every registration and cache for this origin (async () => { for (const r of await navigator.serviceWorker.getRegistrations()) await r.unregister(); for (const k of await caches.keys()) await caches.delete(k); location.reload(); })(); ``` --- # Quicklink URL: https://www.pwa.live/open-source/quicklink/ Prefetches links as they scroll into view while the browser is idle, so the next page loads almost instantly. Prefetches links as they scroll into view while the browser is idle, so the next page loads almost instantly. Works well alongside a service worker cache. ## When to use it Your site is made of many server-rendered pages and you want faster navigations without a framework router. ## Get started ```bash npm i quicklink ``` ```js import { listen } from 'quicklink'; listen({ ignores: [/\/api\//] }); ``` Source code, issues and documentation: [github.com/GoogleChromeLabs/quicklink](https://github.com/GoogleChromeLabs/quicklink). --- # Comlink URL: https://www.pwa.live/open-source/comlink/ Makes Web Workers feel like local objects by turning postMessage into simple function calls. Makes Web Workers feel like local objects by turning postMessage into simple function calls. Keeps heavy work off the main thread. ## When to use it Your PWA does heavy processing (parsing, image work, search indexes) and needs to stay responsive. ## Get started ```bash npm i comlink ``` Source code, issues and documentation: [github.com/GoogleChromeLabs/comlink](https://github.com/GoogleChromeLabs/comlink). --- # Service worker performance: navigation preload, streaming and startup cost URL: https://www.pwa.live/learn/service-worker-performance/ A service worker can make you faster or slower. Here is how to stay fast. A service worker that serves from cache makes repeat visits nearly instant. But a worker that sits in front of every request without a plan can add delay. Here is what to watch. ## Startup cost When the browser needs a worker that is not running, it has to start it: typically tens of milliseconds on desktop, more on slow phones. For a **network-first** navigation that cost is added before the request even starts. **Navigation preload** fixes that. The browser starts the network request **in parallel** with starting the worker: ```js self.addEventListener('activate', (event) => { event.waitUntil(self.registration.navigationPreload?.enable()); }); self.addEventListener('fetch', (event) => { if (event.request.mode !== 'navigate') return; event.respondWith((async () => { const preload = await event.preloadResponse; if (preload) return preload; try { return await fetch(event.request); } catch { return caches.match('/offline.html'); } })()); }); ``` Navigation preload is supported in Chrome, Edge, Firefox and Safari. The server receives a `Service-Worker-Navigation-Preload: true` header, which you can use to send a lighter response. ## Do not handle what you do not need An empty `fetch` handler, or one that just calls `fetch(event.request)`, adds the startup cost for nothing. If you do not need to intercept a request type, **return without calling `respondWith`** and the browser handles it normally. ## Static routing The **Service Worker Static Routing API** (Chromium) lets you declare at install time that some paths should go straight to the network or the cache without starting the worker at all: ```js self.addEventListener('install', (event) => { event.addRoutes?.([ { condition: { urlPattern: '/api/*' }, source: 'network' }, { condition: { urlPattern: '/assets/*' }, source: 'cache' }, ]); }); ``` ## Streaming For app-shell sites, you can stream a cached header immediately while the body comes from the network, using `ReadableStream`. The page starts rendering sooner. Workbox has a `workbox-streams` module for this. ## Keep caches small - Precache only what the app needs to **start**. Cache everything else at runtime. - Limit runtime caches by entry count and age, as PWA.live does (80 pages, 120 assets). Workbox's `ExpirationPlugin` does this for you. - Do not cache video or large downloads without a reason; use [Background Fetch](/learn/background-fetch/). ## Measure Compare repeat-visit load times with and without the worker (DevTools: Application > Service workers > Bypass for network). In the field, the Navigation Timing entry `workerStart` shows when the worker started; `responseStart - workerStart` shows how long it took to answer. --- # vite-plugin-pwa URL: https://www.pwa.live/open-source/vite-plugin-pwa/ Zero-config PWA support for Vite: generates the manifest and a Workbox service worker with your build files precached, with update hooks for React, Vue, Svelte, Solid, Preact and Lit. Zero-config PWA support for Vite: generates the manifest and a Workbox service worker with your build files precached, with update hooks for React, Vue, Svelte, Solid, Preact and Lit. ## When to use it Your app is built with Vite. It is the default choice for Vite projects. ## Get started ```bash npm i -D vite-plugin-pwa ``` ```js import { VitePWA } from 'vite-plugin-pwa'; export default { plugins: [VitePWA({ registerType: 'prompt', manifest: { name: 'My App', short_name: 'App' } })] }; ``` Source code, issues and documentation: [github.com/vite-pwa/vite-plugin-pwa](https://github.com/vite-pwa/vite-plugin-pwa). --- # Workbox and Serwist: service worker libraries compared URL: https://www.pwa.live/learn/workbox-and-serwist/ When to reach for a library, and which one. Hand-written service workers are fine for small sites. Once you have hundreds of hashed files, several cache types and expiration rules, a library saves time and bugs. ## Workbox [Workbox](/open-source/workbox/) is a set of libraries originally built by Google's Chrome team. It has been the most widely used service worker library for years, and many build tools and frameworks use it underneath. Its main modules: - **Precaching** (`workbox-precaching`): takes a list of files with revision hashes, made at build time, and keeps them up to date. - **Routing** (`workbox-routing`): match requests by URL, pattern or function. - **Strategies** (`workbox-strategies`): `CacheFirst`, `NetworkFirst`, `StaleWhileRevalidate`, `NetworkOnly`, `CacheOnly`. - **Plugins**: `ExpirationPlugin`, `CacheableResponsePlugin`, `BackgroundSyncPlugin`, `BroadcastUpdatePlugin`, `RangeRequestsPlugin`. - **Build tools**: `workbox-cli`, `workbox-build`, `workbox-webpack-plugin` with `generateSW` (writes the whole worker) and `injectManifest` (adds the precache list to your own worker). - **workbox-window**: helps pages register the worker and react to updates. ```js import { precacheAndRoute } from 'workbox-precaching'; import { registerRoute } from 'workbox-routing'; import { NetworkFirst, StaleWhileRevalidate, CacheFirst } from 'workbox-strategies'; import { ExpirationPlugin } from 'workbox-expiration'; precacheAndRoute(self.__WB_MANIFEST); registerRoute(({ request }) => request.mode === 'navigate', new NetworkFirst({ cacheName: 'pages' })); registerRoute(({ request }) => request.destination === 'image', new CacheFirst({ cacheName: 'images', plugins: [new ExpirationPlugin({ maxEntries: 60, maxAgeSeconds: 30 * 24 * 3600 })] })); registerRoute(({ request }) => ['style', 'script'].includes(request.destination), new StaleWhileRevalidate({ cacheName: 'assets' })); ``` Workbox is still maintained, with a slower pace than in its early years (version 7.4 shipped in November 2025). ## Serwist [Serwist](/open-source/serwist/) is a fork of Workbox, started because Workbox development had slowed. Its API is close to Workbox's, but it is modernised: one `serwist` package instead of many modules, TypeScript first, ES modules, and integrations maintained in the same repository: `@serwist/next`, `@serwist/vite`, `@serwist/svelte` and others. ```js import { Serwist } from 'serwist'; import { defaultCache } from '@serwist/next/worker'; const serwist = new Serwist({ precacheEntries: self.__SW_MANIFEST, skipWaiting: false, clientsClaim: true, navigationPreload: true, runtimeCaching: defaultCache, }); serwist.addEventListeners(); ``` ## Which one? | Situation | Choice | | --- | --- | | Vite, Nuxt, SvelteKit, Astro, React, Vue | [vite-plugin-pwa](/learn/vite-pwa/) (uses Workbox underneath) | | Next.js | [Serwist](/learn/nextjs-pwa/) (`@serwist/next`) | | Angular | [@angular/service-worker](/learn/angular-pwa/) | | webpack, or an existing Workbox setup | Workbox, or migrate to Serwist when convenient | | A small static site | Hand-written: use our [generator](/tools/service-worker-generator/) | Avoid the older `next-pwa` package for new projects: it is no longer actively maintained, and Serwist is its natural successor. --- # @vite-pwa/nuxt URL: https://www.pwa.live/open-source/vite-pwa-nuxt/ The vite-plugin-pwa module for Nuxt, with a manifest component and a $pwa helper for updates and install prompts. The vite-plugin-pwa module for Nuxt, with a manifest component and a $pwa helper for updates and install prompts. ## When to use it You build with Nuxt. ## Get started ```bash npx nuxi@latest module add @vite-pwa/nuxt ``` Source code, issues and documentation: [github.com/vite-pwa/nuxt](https://github.com/vite-pwa/nuxt). --- # @vite-pwa/sveltekit URL: https://www.pwa.live/open-source/vite-pwa-sveltekit/ The vite-plugin-pwa integration for SvelteKit, adding generated precache manifests and update prompts to SvelteKit's own service worker support. The vite-plugin-pwa integration for SvelteKit, adding generated precache manifests and update prompts to SvelteKit's own service worker support. ## When to use it You use SvelteKit and want Workbox strategies and update hooks. ## Get started ```bash npm i -D @vite-pwa/sveltekit ``` Source code, issues and documentation: [github.com/vite-pwa/sveltekit](https://github.com/vite-pwa/sveltekit). --- # @vite-pwa/astro URL: https://www.pwa.live/open-source/vite-pwa-astro/ The vite-plugin-pwa integration for Astro sites. The vite-plugin-pwa integration for Astro sites. ## When to use it You build with Astro. ## Get started ```bash npx astro add @vite-pwa/astro ``` Source code, issues and documentation: [github.com/vite-pwa/astro](https://github.com/vite-pwa/astro). --- # @angular/pwa and @angular/service-worker URL: https://www.pwa.live/open-source/angular-service-worker/ Angular's own service worker, configured with ngsw-config.json, plus the @angular/pwa schematic that adds the manifest and icons. Angular's own service worker, configured with ngsw-config.json, plus the @angular/pwa schematic that adds the manifest and icons. SwUpdate and SwPush handle updates and web push. ## When to use it You build with Angular. ## Get started ```bash ng add @angular/pwa ``` Source code, issues and documentation: [github.com/angular/angular](https://github.com/angular/angular). --- # next-pwa (legacy) URL: https://www.pwa.live/open-source/next-pwa/ The original Workbox-based PWA plugin for Next.js. The original Workbox-based PWA plugin for Next.js. Widely used in older tutorials. ## When to use it Only for maintaining an existing project. For new Next.js apps, use Serwist. ## Get started ```bash npm i next-pwa ``` Source code, issues and documentation: [github.com/shadowwalker/next-pwa](https://github.com/shadowwalker/next-pwa). --- # PWA for WordPress URL: https://www.pwa.live/open-source/pwa-wp/ The WordPress feature plugin that adds a web app manifest, a service worker API for themes and plugins, and offline templates. The WordPress feature plugin that adds a web app manifest, a service worker API for themes and plugins, and offline templates. ## When to use it Your site runs on WordPress and you want standard PWA plumbing that themes and plugins can build on. ## Get started Install "PWA" from the WordPress plugin directory. Source code, issues and documentation: [github.com/GoogleChromeLabs/pwa-wp](https://github.com/GoogleChromeLabs/pwa-wp). --- # Docusaurus PWA plugin URL: https://www.pwa.live/open-source/docusaurus-pwa/ @docusaurus/plugin-pwa makes a Docusaurus documentation site installable and readable offline, with configurable activation strategies. @docusaurus/plugin-pwa makes a Docusaurus documentation site installable and readable offline, with configurable activation strategies. ## When to use it Your docs are built with Docusaurus and readers need them offline. ## Get started ```bash npm i @docusaurus/plugin-pwa ``` Source code, issues and documentation: [github.com/facebook/docusaurus](https://github.com/facebook/docusaurus). --- # pwa-install URL: https://www.pwa.live/open-source/pwa-install/ A web component with polished install dialogs: uses beforeinstallprompt in Chromium browsers, shows app gallery screenshots from your manifest, and gives step-by-step instructions on iOS, iPadOS and macOS Safari. A web component with polished install dialogs: uses beforeinstallprompt in Chromium browsers, shows app gallery screenshots from your manifest, and gives step-by-step instructions on iOS, iPadOS and macOS Safari. ## When to use it You want a ready-made, good-looking install experience across browsers without writing the platform detection yourself. ## Get started ```bash npm i @khmyznikov/pwa-install ``` ```js import '@khmyznikov/pwa-install'; // ``` Source code, issues and documentation: [github.com/khmyznikov/pwa-install](https://github.com/khmyznikov/pwa-install). --- # PWACompat URL: https://www.pwa.live/open-source/pwacompat/ Reads your web app manifest and adds the matching legacy meta tags and icons for browsers that do not read manifests fully, especially older iOS versions. Reads your web app manifest and adds the matching legacy meta tags and icons for browsers that do not read manifests fully, especially older iOS versions. ## When to use it You must support old iOS versions and do not want to maintain Apple-specific tags by hand. ## Get started ```bash npm i pwacompat ``` Source code, issues and documentation: [github.com/GoogleChromeLabs/pwacompat](https://github.com/GoogleChromeLabs/pwacompat). --- # PWA Elements URL: https://www.pwa.live/open-source/pwa-elements/ Web UI for features that need it in the browser, such as the camera and toast, used by Capacitor plugins when your app runs as a PWA. Web UI for features that need it in the browser, such as the camera and toast, used by Capacitor plugins when your app runs as a PWA. ## When to use it You use Capacitor and ship the same app as a PWA. ## Get started ```bash npm i @ionic/pwa-elements ``` Source code, issues and documentation: [github.com/ionic-team/pwa-elements](https://github.com/ionic-team/pwa-elements). --- # PWABuilder URL: https://www.pwa.live/open-source/pwabuilder/ Checks your PWA and packages it for the Microsoft Store, Google Play, the Meta Quest store and iOS. Checks your PWA and packages it for the Microsoft Store, Google Play, the Meta Quest store and iOS. The monorepo also includes the PWA Starter template and web components such as pwa-update and pwa-auth. ## When to use it You want to publish your PWA in app stores without writing native code, or get a report on what your PWA is missing. ## Get started Use the hosted site at pwabuilder.com, or clone the repository. Source code, issues and documentation: [github.com/pwa-builder/PWABuilder](https://github.com/pwa-builder/PWABuilder). --- # Bubblewrap URL: https://www.pwa.live/open-source/bubblewrap/ A command-line tool that generates, builds and signs an Android app that opens your PWA in a Trusted Web Activity, ready for Google Play. A command-line tool that generates, builds and signs an Android app that opens your PWA in a Trusted Web Activity, ready for Google Play. ## When to use it You want a Google Play listing for your PWA and are comfortable on the command line. ## Get started ```bash npm i -g @bubblewrap/cli && bubblewrap init --manifest=https://example.com/manifest.webmanifest ``` Source code, issues and documentation: [github.com/GoogleChromeLabs/bubblewrap](https://github.com/GoogleChromeLabs/bubblewrap). --- # Android Browser Helper URL: https://www.pwa.live/open-source/android-browser-helper/ The Android library behind Trusted Web Activities, with demos for notifications delegation, Play Billing, location delegation and more. The Android library behind Trusted Web Activities, with demos for notifications delegation, Play Billing, location delegation and more. ## When to use it You need to customise a TWA beyond what Bubblewrap generates, in Android Studio. ## Get started implementation 'com.google.androidbrowserhelper:androidbrowserhelper:'. Source code, issues and documentation: [github.com/GoogleChrome/android-browser-helper](https://github.com/GoogleChrome/android-browser-helper). --- # Capacitor URL: https://www.pwa.live/open-source/capacitor/ Runs your web app inside native iOS and Android apps, with plugins for push, camera, files, haptics and more. Runs your web app inside native iOS and Android apps, with plugins for push, camera, files, haptics and more. The same code still deploys as a PWA. ## When to use it You need App Store presence or native APIs the web lacks, and want to keep one web codebase. ## Get started ```bash npm i @capacitor/core @capacitor/cli && npx cap init ``` Source code, issues and documentation: [github.com/ionic-team/capacitor](https://github.com/ionic-team/capacitor). --- # Tauri (alternative) URL: https://www.pwa.live/open-source/tauri/ Builds small desktop and mobile apps with a web frontend and a Rust backend, using the system webview. Builds small desktop and mobile apps with a web frontend and a Rust backend, using the system webview. Not a PWA, but a common alternative when you need deep OS access. ## When to use it You need native OS integration beyond the web platform on desktop, and are happy to ship installers. ## Get started ```bash npm create tauri-app@latest ``` Source code, issues and documentation: [github.com/tauri-apps/tauri](https://github.com/tauri-apps/tauri). --- # PWA Asset Generator URL: https://www.pwa.live/open-source/pwa-asset-generator/ Generates PWA icons, iOS splash screens, favicons and Windows tiles from one image using a headless browser, and can update your manifest and HTML automatically. Generates PWA icons, iOS splash screens, favicons and Windows tiles from one image using a headless browser, and can update your manifest and HTML automatically. ## When to use it You want every icon and Apple splash image generated in your build from a single SVG or PNG. ## Get started ```bash npx pwa-asset-generator logo.svg ./public/icons --manifest ./public/manifest.webmanifest ``` Source code, issues and documentation: [github.com/elegantapp/pwa-asset-generator](https://github.com/elegantapp/pwa-asset-generator). --- # @vite-pwa/assets-generator URL: https://www.pwa.live/open-source/vite-pwa-assets/ Generates icons, maskable icons, Apple touch icons and favicons from one image, with presets that match vite-plugin-pwa. Generates icons, maskable icons, Apple touch icons and favicons from one image, with presets that match vite-plugin-pwa. ## When to use it You use vite-plugin-pwa and want icons generated in the same toolchain. ## Get started ```bash npm i -D @vite-pwa/assets-generator ``` Source code, issues and documentation: [github.com/vite-pwa/assets-generator](https://github.com/vite-pwa/assets-generator). --- # favicons URL: https://www.pwa.live/open-source/favicons/ A Node module that generates favicons, app icons and a manifest from one image for every platform. A Node module that generates favicons, app icons and a manifest from one image for every platform. ## When to use it You want icon generation inside a Node build script. ## Get started ```bash npm i -D favicons ``` Source code, issues and documentation: [github.com/itgalaxy/favicons](https://github.com/itgalaxy/favicons). --- # Maskable.app URL: https://www.pwa.live/open-source/maskable/ An editor and previewer for maskable icons, showing your icon in every shape launchers use. An editor and previewer for maskable icons, showing your icon in every shape launchers use. The site is itself an installable PWA. ## When to use it You need to check or adjust a maskable icon's safe zone. ## Get started Use maskable.app in your browser. Source code, issues and documentation: [github.com/NotWoods/maskable](https://github.com/NotWoods/maskable). --- # Squoosh URL: https://www.pwa.live/open-source/squoosh/ An image compression web app (and PWA) that converts and resizes images to WebP, AVIF, MozJPEG and more, all in the browser with WebAssembly. An image compression web app (and PWA) that converts and resizes images to WebP, AVIF, MozJPEG and more, all in the browser with WebAssembly. ## When to use it You want to shrink screenshots and images by hand before adding them to your app. ## Get started Use squoosh.app in your browser. Source code, issues and documentation: [github.com/GoogleChromeLabs/squoosh](https://github.com/GoogleChromeLabs/squoosh). --- # SVGO URL: https://www.pwa.live/open-source/svgo/ Optimises SVG files by removing editor metadata and simplifying paths, often halving their size. Optimises SVG files by removing editor metadata and simplifying paths, often halving their size. ## When to use it You use SVG icons and favicons. ## Get started ```bash npm i -D svgo ``` Source code, issues and documentation: [github.com/svg/svgo](https://github.com/svg/svgo). --- # sharp URL: https://www.pwa.live/open-source/sharp/ Very fast Node.js image processing (resize, convert, compress) built on libvips. Very fast Node.js image processing (resize, convert, compress) built on libvips. Ideal for icon and screenshot pipelines. ## When to use it You generate icons or responsive images in your own build scripts. ## Get started ```bash npm i sharp ``` Source code, issues and documentation: [github.com/lovell/sharp](https://github.com/lovell/sharp). --- # web-push (Node.js) URL: https://www.pwa.live/open-source/web-push/ Sends Web Push messages from Node.js: VAPID signing, payload encryption and a CLI to generate VAPID keys. Sends Web Push messages from Node.js: VAPID signing, payload encryption and a CLI to generate VAPID keys. ## When to use it Your server runs Node.js. ## Get started ```bash npm i web-push ``` ```js import webpush from 'web-push'; webpush.setVapidDetails('mailto:you@example.com', PUBLIC_KEY, PRIVATE_KEY); await webpush.sendNotification(subscription, JSON.stringify({ title: 'Hello' })); ``` Source code, issues and documentation: [github.com/web-push-libs/web-push](https://github.com/web-push-libs/web-push). --- # WebPush for PHP URL: https://www.pwa.live/open-source/web-push-php/ Sends Web Push notifications from PHP with VAPID and payload encryption, including batch sending. Sends Web Push notifications from PHP with VAPID and payload encryption, including batch sending. ## When to use it Your server runs PHP (Laravel, Symfony, WordPress or plain PHP). ## Get started ```bash composer require minishlink/web-push ``` Source code, issues and documentation: [github.com/web-push-libs/web-push-php](https://github.com/web-push-libs/web-push-php). --- # pywebpush URL: https://www.pwa.live/open-source/pywebpush/ Sends Web Push messages from Python with VAPID support. Sends Web Push messages from Python with VAPID support. ## When to use it Your server runs Python (Django, Flask, FastAPI). ## Get started ```bash pip install pywebpush ``` Source code, issues and documentation: [github.com/web-push-libs/pywebpush](https://github.com/web-push-libs/pywebpush). --- # webpush-java URL: https://www.pwa.live/open-source/webpush-java/ A Java library for sending Web Push messages with VAPID. A Java library for sending Web Push messages with VAPID. ## When to use it Your server runs on the JVM. ## Get started Add nl.martijndwars:web-push to your build. Source code, issues and documentation: [github.com/web-push-libs/webpush-java](https://github.com/web-push-libs/webpush-java). --- # web-push-csharp URL: https://www.pwa.live/open-source/web-push-csharp/ Sends Web Push notifications from .NET. Sends Web Push notifications from .NET. ## When to use it Your server runs ASP.NET or other .NET code. ## Get started ```bash dotnet add package WebPush ``` Source code, issues and documentation: [github.com/web-push-libs/web-push-csharp](https://github.com/web-push-libs/web-push-csharp). --- # webpush-go URL: https://www.pwa.live/open-source/webpush-go/ A Go library for sending Web Push messages with VAPID. A Go library for sending Web Push messages with VAPID. ## When to use it Your server is written in Go. ## Get started ```bash go get github.com/SherClockHolmes/webpush-go ``` Source code, issues and documentation: [github.com/SherClockHolmes/webpush-go](https://github.com/SherClockHolmes/webpush-go). --- # ntfy URL: https://www.pwa.live/open-source/ntfy/ A self-hostable notification service with an installable web app that receives notifications through Web Push. A self-hostable notification service with an installable web app that receives notifications through Web Push. A good example of push in a real PWA. ## When to use it You want simple self-hosted notifications, or a real-world reference for web push. ## Get started Use ntfy.sh, or run the Docker image. Source code, issues and documentation: [github.com/binwiederhier/ntfy](https://github.com/binwiederhier/ntfy). --- # idb URL: https://www.pwa.live/open-source/idb/ A tiny wrapper that makes IndexedDB use promises, while keeping its full model (stores, indexes, transactions, cursors). A tiny wrapper that makes IndexedDB use promises, while keeping its full model (stores, indexes, transactions, cursors). ## When to use it You want IndexedDB without the callbacks, and no extra abstraction. ## Get started ```bash npm i idb ``` ```js import { openDB } from 'idb'; const db = await openDB('app', 1, { upgrade(db) { db.createObjectStore('notes', { keyPath: 'id' }); } }); await db.put('notes', { id: 1, text: 'Hello' }); ``` Source code, issues and documentation: [github.com/jakearchibald/idb](https://github.com/jakearchibald/idb). --- # idb-keyval URL: https://www.pwa.live/open-source/idb-keyval/ The smallest possible key-value store on top of IndexedDB: get, set, del, keys. The smallest possible key-value store on top of IndexedDB: get, set, del, keys. ## When to use it You only need simple key-value storage that works in service workers (unlike localStorage). ## Get started ```bash npm i idb-keyval ``` Source code, issues and documentation: [github.com/jakearchibald/idb-keyval](https://github.com/jakearchibald/idb-keyval). --- # Dexie.js URL: https://www.pwa.live/open-source/dexie/ A friendly IndexedDB library with a clear query API, live queries for React, Vue, Svelte and Angular, and an optional sync service (Dexie Cloud). A friendly IndexedDB library with a clear query API, live queries for React, Vue, Svelte and Angular, and an optional sync service (Dexie Cloud). ## When to use it Your PWA stores lots of structured data and you want readable queries and reactive UI. ## Get started ```bash npm i dexie ``` Source code, issues and documentation: [github.com/dexie/Dexie.js](https://github.com/dexie/Dexie.js). --- # localForage URL: https://www.pwa.live/open-source/localforage/ A localStorage-like asynchronous API backed by IndexedDB, with fallbacks. A localStorage-like asynchronous API backed by IndexedDB, with fallbacks. ## When to use it You want localStorage simplicity without blocking the main thread. ## Get started ```bash npm i localforage ``` Source code, issues and documentation: [github.com/localForage/localForage](https://github.com/localForage/localForage). --- # PouchDB URL: https://www.pwa.live/open-source/pouchdb/ A JavaScript database that stores data in the browser and syncs with CouchDB-compatible servers, designed for offline-first apps. A JavaScript database that stores data in the browser and syncs with CouchDB-compatible servers, designed for offline-first apps. ## When to use it You want two-way sync with CouchDB. ## Get started ```bash npm i pouchdb ``` Source code, issues and documentation: [github.com/pouchdb/pouchdb](https://github.com/pouchdb/pouchdb). --- # RxDB URL: https://www.pwa.live/open-source/rxdb/ A reactive, offline-first database for JavaScript apps with replication plugins for HTTP, GraphQL, CouchDB, Firestore and more. A reactive, offline-first database for JavaScript apps with replication plugins for HTTP, GraphQL, CouchDB, Firestore and more. ## When to use it Your PWA is data-heavy and needs real-time UI updates and server sync. ## Get started ```bash npm i rxdb rxjs ``` Source code, issues and documentation: [github.com/pubkey/rxdb](https://github.com/pubkey/rxdb). --- # Yjs URL: https://www.pwa.live/open-source/yjs/ A CRDT framework for shared data that merges changes automatically, powering collaborative and offline-capable editors. A CRDT framework for shared data that merges changes automatically, powering collaborative and offline-capable editors. ## When to use it Several people (or devices) edit the same data and you need conflict-free merging offline. ## Get started ```bash npm i yjs ``` Source code, issues and documentation: [github.com/yjs/yjs](https://github.com/yjs/yjs). --- # Automerge URL: https://www.pwa.live/open-source/automerge/ A CRDT library for local-first apps: JSON-like documents that sync and merge without conflicts. A CRDT library for local-first apps: JSON-like documents that sync and merge without conflicts. ## When to use it You are building a local-first app where data lives on the device and syncs later. ## Get started ```bash npm i @automerge/automerge ``` Source code, issues and documentation: [github.com/automerge/automerge](https://github.com/automerge/automerge). --- # SQLite Wasm URL: https://www.pwa.live/open-source/sqlite-wasm/ The official SQLite build for browsers, packaged for npm, able to persist databases in the Origin Private File System. The official SQLite build for browsers, packaged for npm, able to persist databases in the Origin Private File System. ## When to use it You want a real SQL database in your PWA, stored on the device. ## Get started ```bash npm i @sqlite.org/sqlite-wasm ``` Source code, issues and documentation: [github.com/sqlite/sqlite-wasm](https://github.com/sqlite/sqlite-wasm). --- # browser-fs-access URL: https://www.pwa.live/open-source/browser-fs-access/ Uses the File System Access API where available and falls back to input and download elsewhere, with one API for opening and saving files. Uses the File System Access API where available and falls back to input and download elsewhere, with one API for opening and saving files. ## When to use it Your PWA opens and saves user files and must work in every browser. ## Get started ```bash npm i browser-fs-access ``` Source code, issues and documentation: [github.com/GoogleChromeLabs/browser-fs-access](https://github.com/GoogleChromeLabs/browser-fs-access). --- # Lighthouse URL: https://www.pwa.live/open-source/lighthouse/ Audits performance, accessibility, best practices and SEO, in DevTools, from the command line or in Node. Audits performance, accessibility, best practices and SEO, in DevTools, from the command line or in Node. Its PWA category was removed in Lighthouse 12. ## When to use it You want performance and accessibility audits. Use DevTools and a PWA checker for installability. ## Get started ```bash npm i -g lighthouse ``` Source code, issues and documentation: [github.com/GoogleChrome/lighthouse](https://github.com/GoogleChrome/lighthouse). --- # Lighthouse CI URL: https://www.pwa.live/open-source/lighthouse-ci/ Runs Lighthouse on every commit and fails the build when budgets are missed, with a server to track results over time. Runs Lighthouse on every commit and fails the build when budgets are missed, with a server to track results over time. ## When to use it You want performance and accessibility regressions caught in CI. ## Get started ```bash npm i -D @lhci/cli ``` Source code, issues and documentation: [github.com/GoogleChrome/lighthouse-ci](https://github.com/GoogleChrome/lighthouse-ci). --- # Playwright URL: https://www.pwa.live/open-source/playwright/ End-to-end testing across Chromium, Firefox and WebKit, with support for service workers, offline mode and mobile emulation. End-to-end testing across Chromium, Firefox and WebKit, with support for service workers, offline mode and mobile emulation. ## When to use it You want automated tests that check your PWA works offline and after updates. ## Get started ```bash npm init playwright@latest ``` Source code, issues and documentation: [github.com/microsoft/playwright](https://github.com/microsoft/playwright). --- # Puppeteer URL: https://www.pwa.live/open-source/puppeteer/ A Node library to control Chrome and Firefox, useful for scripted checks, screenshots for your manifest and service worker tests. A Node library to control Chrome and Firefox, useful for scripted checks, screenshots for your manifest and service worker tests. ## When to use it You want scripted Chrome automation, such as generating manifest screenshots. ## Get started ```bash npm i puppeteer ``` Source code, issues and documentation: [github.com/puppeteer/puppeteer](https://github.com/puppeteer/puppeteer). --- # Mock Service Worker URL: https://www.pwa.live/open-source/msw/ Mocks APIs by intercepting requests with a service worker in the browser (and at the network level in Node), for tests and development. Mocks APIs by intercepting requests with a service worker in the browser (and at the network level in Node), for tests and development. ## When to use it You want realistic API mocks for development and tests. It is not for building your PWA's own service worker. ## Get started ```bash npm i -D msw ``` Source code, issues and documentation: [github.com/mswjs/msw](https://github.com/mswjs/msw). --- # web-vitals URL: https://www.pwa.live/open-source/web-vitals/ A tiny library that measures LCP, INP, CLS, FCP and TTFB from real users the same way Chrome does. A tiny library that measures LCP, INP, CLS, FCP and TTFB from real users the same way Chrome does. ## When to use it You want field performance data, ideally split by display mode. ## Get started ```bash npm i web-vitals ``` ```js import { onLCP, onINP, onCLS } from 'web-vitals'; [onLCP, onINP, onCLS].forEach((fn) => fn((m) => sendToAnalytics(m.name, m.value))); ``` Source code, issues and documentation: [github.com/GoogleChrome/web-vitals](https://github.com/GoogleChrome/web-vitals). --- # PWA Starter URL: https://www.pwa.live/open-source/pwa-starter/ An opinionated starter for new PWAs with Lit web components, Vite, a Workbox service worker, a manifest and routing set up. An opinionated starter for new PWAs with Lit web components, Vite, a Workbox service worker, a manifest and routing set up. ## When to use it You want a working PWA template to build on, without choosing a big framework. ## Get started Use the template on GitHub, or create it from PWABuilder. Source code, issues and documentation: [github.com/pwa-builder/pwa-starter](https://github.com/pwa-builder/pwa-starter). --- # Ionic Framework URL: https://www.pwa.live/open-source/ionic-framework/ Mobile UI components for Angular, React and Vue that adapt to iOS and Android styles, designed to ship as a PWA and as native apps with Capacitor. Mobile UI components for Angular, React and Vue that adapt to iOS and Android styles, designed to ship as a PWA and as native apps with Capacitor. ## When to use it You want an app-like mobile UI out of the box. ## Get started ```bash npm i -g @ionic/cli && ionic start ``` Source code, issues and documentation: [github.com/ionic-team/ionic-framework](https://github.com/ionic-team/ionic-framework). --- # Quasar URL: https://www.pwa.live/open-source/quasar/ A Vue framework that builds the same app as a website, PWA, mobile app (Capacitor or Cordova) or desktop app, with a built-in PWA mode. A Vue framework that builds the same app as a website, PWA, mobile app (Capacitor or Cordova) or desktop app, with a built-in PWA mode. ## When to use it You use Vue and want PWA, mobile and desktop builds from one project. ## Get started ```bash npm init quasar ``` Source code, issues and documentation: [github.com/quasarframework/quasar](https://github.com/quasarframework/quasar). --- # Framework7 URL: https://www.pwa.live/open-source/framework7/ A UI framework for mobile web apps and PWAs with native-looking iOS and Material Design components. A UI framework for mobile web apps and PWAs with native-looking iOS and Material Design components. ## When to use it You want a native look on iOS and Android with little custom CSS. ## Get started ```bash npm i framework7 ``` Source code, issues and documentation: [github.com/framework7io/framework7](https://github.com/framework7io/framework7). --- # Magento PWA Studio URL: https://www.pwa.live/open-source/pwa-studio/ Tools and a reference storefront for building PWA storefronts on Adobe Commerce and Magento Open Source. Tools and a reference storefront for building PWA storefronts on Adobe Commerce and Magento Open Source. ## When to use it You run Adobe Commerce or Magento and want a PWA storefront. ## Get started ```bash yarn create @magento/pwa ``` Source code, issues and documentation: [github.com/magento/pwa-studio](https://github.com/magento/pwa-studio). --- # MDN PWA examples URL: https://www.pwa.live/open-source/mdn-pwa-examples/ Small, readable PWA examples that accompany MDN's Progressive Web Apps documentation. Small, readable PWA examples that accompany MDN's Progressive Web Apps documentation. ## When to use it You learn best from short, complete examples. ## Get started ```bash git clone https://github.com/mdn/pwa-examples ``` Source code, issues and documentation: [github.com/mdn/pwa-examples](https://github.com/mdn/pwa-examples). --- # Awesome PWA URL: https://www.pwa.live/open-source/awesome-pwa/ A long-running curated list of PWA articles, tools, libraries and examples. A long-running curated list of PWA articles, tools, libraries and examples. ## When to use it You want more links after PWA.live. ## Get started Browse on GitHub. Source code, issues and documentation: [github.com/hemanth/awesome-pwa](https://github.com/hemanth/awesome-pwa). --- # Service worker caching strategies: cache first, network first, stale-while-revalidate URL: https://www.pwa.live/learn/caching-strategies/ Five strategies, and which one fits each kind of request. A service worker decides, for every request, where the answer comes from. There are five classic strategies. Most apps use three of them for different kinds of request. ## 1. Cache first (cache falling back to network) Look in the cache; if missing, fetch and store. ```js async function cacheFirst(request, cacheName) { const cache = await caches.open(cacheName); const hit = await cache.match(request); if (hit) return hit; const res = await fetch(request); if (res.ok) cache.put(request, res.clone()); return res; } ``` **Use for:** files with a version or hash in the name (`app.3f9a1c.js`, `style.css?v=12`), fonts, icons. They never change at the same URL, so the cache is always right. ## 2. Network first (network falling back to cache) Try the network; store a copy; if it fails, use the cached copy. ```js async function networkFirst(request, cacheName, timeoutMs = 4000) { const cache = await caches.open(cacheName); try { const res = await Promise.race([ fetch(request), new Promise((_, reject) => setTimeout(() => reject(new Error('timeout')), timeoutMs)), ]); if (res.ok) cache.put(request, res.clone()); return res; } catch { return (await cache.match(request)) || caches.match('/offline.html'); } } ``` **Use for:** HTML pages and API data that must be fresh when online. The timeout matters: on a bad connection ("lie-fi"), waiting 30 seconds for the network is worse than showing a slightly older page. ## 3. Stale-while-revalidate Answer from the cache straight away, and update the cache in the background for next time. ```js async function staleWhileRevalidate(event, cacheName) { const cache = await caches.open(cacheName); const hit = await cache.match(event.request); const update = fetch(event.request).then((res) => { if (res.ok) cache.put(event.request, res.clone()); return res; }); if (hit) { event.waitUntil(update.catch(() => {})); return hit; } return update; } ``` **Use for:** things that change but where one visit out of date is fine: avatars, non-hashed CSS, Google Fonts stylesheets, product lists, configuration. ## 4. Network only Do not cache. **Use for:** payments, logins, analytics, admin, anything personal or non-GET. (Simply not calling `respondWith` does this.) ## 5. Cache only Only from cache. **Use for:** the precached app shell, after install. ## A typical setup | Request | Strategy | Cache limit | | --- | --- | --- | | HTML navigations | Network first, 3 to 4 s timeout, offline page fallback | 50 to 100 pages | | Hashed JS and CSS | Cache first | Version-named cache | | Images | Cache first | 60 entries, 30 days | | Fonts | Stale-while-revalidate (CSS), cache first (files) | 30 entries, 1 year | | JSON API (public) | Network first or stale-while-revalidate | 50 entries, 1 day | | JSON API (private), POST, auth | Network only | none | PWA.live uses exactly this pattern: open DevTools > Application > Cache storage to see it. ## Pitfalls - **Opaque responses** from other origins (`mode: 'no-cors'`) have status 0 and count as several MB of quota each in Chrome. Only cache them when you must. - **Never cache personalised HTML** under a shared URL. - **`Vary` headers** can make `cache.match` miss; `ignoreVary: true` helps. - **Query strings** make different cache keys; use `ignoreSearch: true` when the query does not change the content. Pick a strategy interactively with the [caching strategy picker](/tools/caching-strategy-picker/), or generate a full worker with the [service worker generator](/tools/service-worker-generator/). --- # Make a great offline page for your PWA URL: https://www.pwa.live/learn/offline-fallback-page/ Replace the browser's error with something useful. When a page is not in the cache and the network is gone, the browser shows its own error. A PWA should show its own page instead: same look, a clear message, and something useful to do. ## 1. Create the page Keep it small and self-contained: inline the CSS, or make sure everything it uses is precached. ```html You are offline

You're offline

This page isn't saved on your device yet. Check your connection, or read one of these:

``` ## 2. Precache it, and serve it for failed navigations ```js const OFFLINE = '/offline.html'; self.addEventListener('install', (e) => e.waitUntil(caches.open('shell-v1').then((c) => c.add(OFFLINE)))); self.addEventListener('fetch', (event) => { if (event.request.mode !== 'navigate') return; event.respondWith( fetch(event.request).catch(async () => (await caches.match(event.request)) || caches.match(OFFLINE)) ); }); ``` Only navigations get the offline page. For images, you can return a small placeholder SVG instead. ## 3. List what is available offline The page itself can read the caches and link to pages the visitor already has: ```js const list = document.getElementById('saved'); for (const name of await caches.keys()) { const cache = await caches.open(name); for (const req of await cache.keys()) { const url = new URL(req.url); if (url.origin === location.origin && url.pathname.endsWith('/')) { const li = document.createElement('li'); li.innerHTML = `${url.pathname}`; list.append(li); } } } ``` PWA.live's own [offline page](/offline/) does this, reading each page's title from the cache. ## 4. Retry automatically ```js addEventListener('online', () => location.reload()); ``` ## 5. Let people save pages on purpose A "Save for offline" button that caches a page (and its images) on request is often more useful than guessing. Every guide on PWA.live has one: it sends the URL to the service worker, which stores it in a separate cache that is never trimmed automatically. ## Translations If your site has several languages, make one offline page per language and pick it by the URL's language prefix in the service worker. Our [offline page generator](/tools/offline-page-generator/) builds a ready-to-use page in any language. --- # Offline-first data: IndexedDB, sync and conflict handling URL: https://www.pwa.live/learn/offline-first-data/ Caching pages is easy. Keeping data in sync is the real work. Caching HTML and files gets your app to **open** offline. Letting people **read and change data** offline needs a local database and a sync plan. ## Where to store data | Storage | Good for | Notes | | --- | --- | --- | | **IndexedDB** | Structured data, thousands of records, blobs | The main choice. Asynchronous, transactional, available in workers. | | **Cache API** | HTTP responses | Great for files and pages, not for querying. | | **OPFS** (Origin Private File System) | Large files, SQLite databases | Fast; works in all modern browsers. | | `localStorage` | Tiny settings | Synchronous and blocks the main thread; not available in service workers. | IndexedDB's raw API is verbose, so most apps use a small wrapper: - [idb](/open-source/idb/): a tiny promise wrapper that keeps the IndexedDB model. - [Dexie](/open-source/dexie/): a friendlier query API, live queries, and an optional sync service. - [localForage](/open-source/localforage/): a `localStorage`-like API backed by IndexedDB. ```js import { openDB } from 'idb'; const db = await openDB('notes', 1, { upgrade(db) { const s = db.createObjectStore('notes', { keyPath: 'id' }); s.createIndex('updated', 'updated'); db.createObjectStore('outbox', { autoIncrement: true }); }, }); await db.put('notes', { id: crypto.randomUUID(), text: 'Buy milk', updated: Date.now() }); ``` ## Writing offline: the outbox pattern 1. Save the change locally **first**, and update the UI at once. 2. Add the change to an **outbox** store. 3. When online, send outbox items to the server in order, and remove each one when the server confirms. ```js async function save(note) { await db.put('notes', note); await db.add('outbox', { op: 'put', note }); flush(); } async function flush() { if (!navigator.onLine) return; const tx = db.transaction('outbox', 'readwrite'); for await (const cursor of tx.store) { const res = await fetch('/api/notes', { method: 'POST', body: JSON.stringify(cursor.value) }).catch(() => null); if (!res || !res.ok) break; await cursor.delete(); } } addEventListener('online', flush); ``` In Chromium browsers, [Background Sync](/learn/background-sync/) can run `flush` from the service worker even after the tab is closed. Elsewhere, flush on `online`, on `visibilitychange` and on app start. ## Conflicts When the same record changes in two places, you need a rule: - **Last write wins** (by timestamp): simple, and fine for personal data. - **Server wins**, and the app shows the server version. - **Field-level merge**: merge different fields, flag real clashes. - **CRDTs**: data types that merge automatically. [Yjs](/open-source/yjs/) and Automerge power collaborative editors that work offline. ## Full sync engines If your app is mostly data, a sync-capable database saves months: [RxDB](/open-source/rxdb/) (reactive, with replication plugins), [PouchDB](/open-source/pouchdb/) (syncs with CouchDB), [Dexie Cloud](/open-source/dexie/), or SQLite in the browser via [SQLite Wasm](/open-source/sqlite-wasm/) on OPFS. ## Tell people what is happening Show "Saved on this device" and "Synced" states, and a count of unsent changes. People trust offline apps when they can see what will happen to their data. --- # Storage quota, persistence and eviction in PWAs URL: https://www.pwa.live/learn/storage-quota-and-eviction/ How much you can store, and how to keep it. Browsers give each site (each **origin**) a storage quota, shared by IndexedDB, the Cache API, OPFS and service worker registrations. Here is how it works in 2026. ## How much? | Browser | Approximate quota per origin | | --- | --- | | Chrome and Edge | Up to about 60% of total disk size | | Firefox | Up to about 10% of disk (or 10 GiB) in best-effort mode; up to 50% (8 TiB cap) when persistent | | Safari | Around 60% of disk for browser apps and Home Screen web apps; less for embedded views | These change between versions, so **always ask the browser** rather than assuming. ```js const { usage, quota } = await navigator.storage.estimate(); console.log(`Using ${(usage / 1e6).toFixed(1)} MB of ${(quota / 1e9).toFixed(1)} GB`); ``` Try it on your own device with the [storage inspector](/tools/storage-inspector/). ## Best-effort vs persistent By default, storage is **best-effort**: when the device runs low on space, the browser may delete it, least recently used origins first. You can ask for **persistent** storage, which is only cleared by the user: ```js if (navigator.storage?.persist) { const persisted = await navigator.storage.persisted() || await navigator.storage.persist(); console.log(persisted ? 'Storage is persistent' : 'Storage may be cleared'); } ``` - **Chrome and Edge** grant it automatically when the site is installed, bookmarked, has notification permission or is used a lot. No prompt. - **Firefox** asks the user. - **Safari** (17 and later) decides from how the site is used, without a prompt; Home Screen web apps are the most likely to get it. ## Safari's seven-day rule Safari's Intelligent Tracking Prevention deletes script-writable storage (IndexedDB, Cache API, localStorage, service worker registrations) for sites the user has not interacted with in **seven days of browser use**. **Home Screen web apps are exempt**: their storage is separate and is not subject to this rule. This is one more reason to encourage installation on iOS. ## Handling quota errors Writes can fail with a `QuotaExceededError`. Catch it, clear old caches, and tell the user if needed: ```js try { await cache.put(request, response); } catch (err) { if (err.name === 'QuotaExceededError') await trimCaches(); } ``` ## Good habits - Cap runtime caches by count and age. - Do not cache opaque cross-origin responses unless necessary (they are padded to several MB each in Chrome's quota accounting). - Store large files in OPFS rather than as base64 strings. - Offer a "Clear offline data" button in your settings. --- # Firefox brought web apps back on Windows. What it means for your PWA URL: https://www.pwa.live/blog/firefox-web-apps-on-windows/ Four years after removing them, Firefox brought installed web apps back. In 2021 Firefox removed its experimental desktop "site-specific browser" feature, after user testing showed confusion. That left Firefox as the only major desktop browser without a way to install web apps. In 2025 that changed. **Firefox 143 turned on web apps for Windows** (the project's working name was "taskbar tabs"). You can pin a site to the Windows taskbar and it opens in a minimal window of its own, tied to your normal Firefox profile, with the address bar still available. Mozilla said macOS and Linux would follow. ## What it means for you - Firefox uses your **web app manifest** where there is one (name, icons, start URL), so a good manifest pays off in one more browser. - Navigations outside your site open in a normal Firefox window, much like scope handling elsewhere. - There is **no `beforeinstallprompt`** event, so your own install button will stay hidden in Firefox. That is fine: users pin the site from Firefox's own interface. Test your app on Firefox for Windows the way you test Chrome and Edge: check the icon, the window title and how external links behave. Our [support table](/browser-support/) and [desktop guide](/learn/pwa-on-desktop/) are updated. --- # Behind the scenes: how PWA.live's own service worker works URL: https://www.pwa.live/blog/how-pwa-live-service-worker-works/ Our own worker, explained line by line. Every guide on this site tells you how to build a PWA. Here is how this site does it, so you can judge whether we follow our own advice. You can read the live worker at [/sw.js](/sw.js). ## One generated file Our pages come from a small PHP engine, so the service worker is generated by the server too. At the top is a configuration object with a **version**, the **precache list** and the **offline page for each language**. The version is a hash of our CSS and JavaScript files, our content index and the PWA settings, so any change to the site produces a new worker and browsers notice it on the next visit. The script is served with `Cache-Control: no-cache`. ## Install: the app shell On install we fetch the home page, the offline pages in four languages, the manifest, our CSS and JavaScript, icons and a few key pages: the learn and tools hubs, two popular guides and the support table. We do not call `skipWaiting()` here. ## Pages: network first, with a timeout Every navigation goes to the network first, using **navigation preload** so the request starts while the worker boots. If no answer arrives within four seconds, or the network fails, we serve the cached copy of that page, and if there is none, the offline page in the right language. Successful pages are stored, keeping the 80 most recent. ## Files: cache first Our CSS and JavaScript have a version in their URL (`?v=...`), so they never change at the same address: cache first is safe and fast. Other same-origin files use stale-while-revalidate. Google Fonts are cached with stale-while-revalidate too. ## What we never touch Anything that is not a GET request, and everything under `/admin`, `/api/`, `/forms/` and the checker's endpoint. Those always go to the network. ## Save for offline The **Save for offline** button on each guide sends the page's URL to the worker with `postMessage`. The worker fetches it and stores it in a separate cache that is never trimmed. The learn page can save every guide at once. ## Updates When a new worker has installed and is waiting, our page shows a small message with a **Reload** button. Clicking it sends `SKIP_WAITING`; when the new worker takes control, the page reloads once. People are never interrupted mid-sentence. ## Push There is no marketing push on PWA.live. The worker has `push` and `notificationclick` handlers so the [notification tester](/tools/notification-tester/) can show you a real notification on your device. ## The manifest Our [manifest](/manifest.webmanifest) has an `id`, a tagged `start_url`, maskable icons, `display_override` with window controls overlay, four shortcuts, real screenshots for the richer install dialog, and a `share_target` that sends shared links to the [PWA checker](/tools/pwa-checker/). If you spot something we could do better, [tell us](/contact/). --- # PWA install criteria in 2026: Chrome, Edge, Safari, Firefox and Samsung Internet URL: https://www.pwa.live/learn/install-criteria/ What each browser needs before it shows "Install". "Why is there no install button?" is the most common PWA question. The answer depends on the browser. ## Chrome and Edge (desktop and Android) Your site is installable when: - It is served over **HTTPS** (or `localhost`). - It links a **web app manifest** that includes: - `name` or `short_name` - `icons` with at least a **192 x 192** and a **512 x 512** icon - `start_url` - `display` set to `fullscreen`, `standalone`, `minimal-ui` or `window-controls-overlay` - `prefer_related_applications` absent or `false` - It is not already installed. A **service worker is no longer required** to install through the browser menu: Chrome dropped that rule in version 108 on Android and 112 on desktop. Without one, though, your installed app shows an error offline, so you still want one. For the **automatic prompts** (the install icon in the address bar, the mini-infobar on Android and the `beforeinstallprompt` event), Chrome also uses an **engagement heuristic**: the user has clicked or tapped on the page at least once and spent at least 30 seconds on it at some point. That is why the prompt never appears on the very first second of a visit. On Android, Chrome installs a **WebAPK**: a real Android package, minted by Google's servers, so the app appears in the app drawer and settings like a native app. See [PWAs on Android](/learn/pwa-on-android/). ## Samsung Internet, Opera and other Chromium browsers They follow rules very close to Chrome's and support `beforeinstallprompt`. ## Safari on iPhone and iPad There is **no automatic prompt and no `beforeinstallprompt` event**. People install from the **Share** menu with **Add to Home Screen**. - Since **iOS and iPadOS 26**, every site added to the Home Screen opens **as a web app by default**, manifest or not. Users can switch off "Open as Web App" to add a plain bookmark instead. - Before iOS 26, a site opened as a web app only if its manifest had `display: standalone` (or `fullscreen`), or it used the `apple-mobile-web-app-capable` meta tag. - Since **iOS 16.4**, Chrome, Edge, Firefox and other browsers on iOS can also add web apps to the Home Screen from their own share menus. See [install on iPhone and iPad](/learn/install-on-ios/). ## Safari on Mac Since **Safari 17** on macOS Sonoma, any site can be added with **File > Add to Dock** (or the Share menu). It opens in its own window, with its own Dock icon and separate cookies. There is no install prompt event. ## Firefox - **Android**: Firefox can **Add to Home screen** and installed sites open in their own window. - **Windows**: since **Firefox 143**, Firefox can pin a site to the taskbar as a web app ("taskbar tabs"), using the manifest where there is one. Support on macOS and Linux was planned to follow. - No `beforeinstallprompt` event. ## Quick check Run the [PWA checker](/tools/pwa-checker/) on your URL, or open Chrome DevTools > Application > Manifest, which lists every install problem it finds. Our [browser support table](/browser-support/) has the full matrix. Q: Why does the install icon not appear in Chrome? A: Open DevTools, Application, Manifest. It lists missing fields, wrong icon sizes and other problems. Also check the app is not already installed, and that you have interacted with the page for a little while. Q: Do I need a service worker to install a PWA? A: Not in Chrome 108 and later on Android or Chrome 112 and later on desktop, or in Safari. But without one the installed app cannot work offline, so it is still strongly recommended. Q: Can I make the install prompt appear on iPhone? A: No. Safari on iOS has no install prompt and no beforeinstallprompt event. Show your own short instructions pointing to Share, then Add to Home Screen. --- # iOS 26 made every Home Screen site a web app. Here is what to do about it URL: https://www.pwa.live/blog/ios-26-every-site-is-a-web-app/ Your site may already be an app on thousands of iPhones. For seventeen years, adding a site to the iPhone Home Screen did one of two things. If the site had asked to be a web app (with a manifest `display` of `standalone`, or Apple's old meta tag), it opened in its own window. Otherwise the icon was just a bookmark that opened Safari. **iOS and iPadOS 26 changed the default.** Now every site added to the Home Screen opens as a web app, whether it was designed for that or not. Users can switch off "Open as Web App" in the Add to Home Screen sheet, but most people leave defaults alone. ## Why this matters even if you never built a PWA If your users ever added your site to their Home Screen, it now opens with **no address bar, no back button and no Safari toolbar**. That is great for app-like sites. For others, a few things can go wrong: - **Dead ends.** A page with no link back to the home page traps people. In standalone mode on iPhone, the only "back" is an edge swipe. - **Login loops.** Web apps on the Home Screen have their own storage, separate from Safari. Someone signed in to your site in Safari has to sign in again in the web app. - **External links.** Links to other sites open in a Safari sheet, which is fine, but payment and sign-in redirects that bounce between domains need testing. - **Notches and the Home indicator.** Without `viewport-fit=cover` and safe-area padding, your header can sit under the status bar. ## A short checklist 1. Add a [web app manifest](/learn/web-app-manifest/) with a proper name, icons and `start_url`, so the app looks intentional. 2. Add an opaque 180 px `apple-touch-icon` ([icons guide](/learn/icons-and-maskable-icons/)). 3. Make sure every page has a visible way home. 4. Test sign-in and checkout from a Home Screen icon on a real device. 5. Handle safe areas ([display modes](/learn/display-modes/)). 6. Consider a small service worker, so the app shows a [friendly offline page](/learn/offline-fallback-page/) instead of Safari's error. The upside is real: more people with your icon on their Home Screen, and, for those who allow it, [push notifications](/learn/web-push-notifications/). The [iOS meta tag generator](/tools/ios-meta-tags/) gets you the Apple-specific bits in a minute. --- # What the 2024 EU web apps episode taught us URL: https://www.pwa.live/blog/lessons-from-the-eu-web-apps-episode/ Two weeks when PWAs in Europe nearly disappeared. ## What happened In early 2024, Apple was preparing iOS 17.4 to meet the EU's Digital Markets Act, which required it to allow browser engines other than WebKit. In the second beta, EU users found that Home Screen web apps no longer opened as apps; they opened as Safari tabs, losing push notifications, badges and their separate storage. Apple confirmed it was deliberate. Its reasoning was that supporting web apps on other engines would need a new architecture, and that it had low usage. Developers, the Open Web Advocacy group and businesses that depended on web apps objected loudly, and the European Commission began asking questions. On **1 March 2024**, days before release, Apple reversed the decision: Home Screen web apps would keep working in the EU as before, built on WebKit. ## The lessons 1. **Keep your web app a good website.** Teams whose PWAs worked well in a normal Safari tab lost little. Teams whose app only made sense installed had a frightening fortnight. 2. **Do not lock critical features to installation if you can avoid it.** Push on iOS requires it; most other things do not. 3. **Keep a way to reach users that is not the app.** Email, accounts and plain links still matter. 4. **Speak up.** The reversal happened because developers and businesses explained clearly what would break. Standards bodies and regulators do listen. Today, Home Screen web apps work in the EU as everywhere else. For the full current picture see [PWAs on iPhone and iPad](/learn/pwa-on-ios/). --- # Lighthouse dropped the PWA score. That was the right call URL: https://www.pwa.live/blog/lighthouse-dropped-the-pwa-score/ A green badge was never the same as a good app. For years, the Lighthouse PWA badge was the quickest way to say "we have a PWA". Teams added a manifest, registered a service worker that cached one page, ticked the boxes and moved on. Lighthouse 11 dropped the service worker and offline checks, and **Lighthouse 12 removed the PWA category entirely in 2024**. Some people saw that as Google losing interest in PWAs. We think it was simply honest. ## Why the score had to go - **The rules changed under it.** Chrome stopped requiring a service worker to install. Safari never used Lighthouse's criteria. A single pass/fail no longer described any real browser. - **It measured presence, not quality.** A worker that cached the home page and nothing else passed. An app with excellent offline support but one missing icon size failed. - **It encouraged box-ticking.** The goal became the badge, not the experience. ## What to check instead A useful PWA review asks questions a score cannot: 1. Does the app **install cleanly** on Android, desktop and iPhone, with the right name, icons and colours? 2. What happens **offline** on a page you have never visited? On one you have? 3. When you deploy, do users **get the update** without losing work? 4. Does **sign-out** remove private data from caches? 5. Is it **fast** on a mid-range phone? DevTools' Application panel answers the first question in seconds. Our [PWA checker](/tools/pwa-checker/) covers the manifest and icons from the outside. The rest takes a real phone and twenty minutes: see [testing PWAs](/learn/testing-pwas/) for a test plan. Lighthouse is still the right tool for performance and accessibility. It just no longer pretends to grade the parts that need a human. --- # Offline is a feature people notice URL: https://www.pwa.live/blog/offline-is-a-feature-people-notice/ Nobody praises the cache. Everyone notices when it saves them. People rarely say "this site has a great service worker". They say "it still worked on the train". Five small things make that happen: 1. **A real offline page.** Your colours, a plain message and a retry button, instead of the browser's error. [How](/learn/offline-fallback-page/) 2. **A list of what is still available.** Read the caches and link to pages people already opened. PWA.live's [offline page](/offline/) does this. 3. **A timeout on network-first.** On a weak signal, show the cached page after three or four seconds instead of a blank screen. [How](/learn/caching-strategies/) 4. **Save for offline.** Let people keep the pages they care about. Every guide on this site has a button for it. 5. **Tell people what happened.** A small "You're offline; showing saved pages" note, and "Back online" when it returns. None of this needs a framework. Our [service worker generator](/tools/service-worker-generator/) and [offline page generator](/tools/offline-page-generator/) get you most of the way in ten minutes. --- # Ten years of Progressive Web Apps: what worked, what did not URL: https://www.pwa.live/blog/ten-years-of-pwas/ A decade of "it is just a website", looked at honestly. In 2015, Alex Russell and Frances Berriman gave a name to something that was starting to happen: websites using new browser features (service workers, the manifest, push) to behave like apps, while staying websites. They called them **Progressive Web Apps**. More than a decade later, here is our honest scorecard. ## What worked **Emerging markets proved the case.** The first big results came from India, Nigeria and other markets where phones are modest and data is expensive. Flipkart, Ola, Konga, Jumia, MakeMyTrip and BookMyShow published striking numbers, mostly because their PWAs were **small and fast** where native apps were heavy. The [directory](/directory/) has the details. **Service workers changed the web for everyone.** Even sites that never call themselves PWAs use service workers for caching, offline pages and push. The idea of a programmable network layer in the browser is now ordinary. **Desktop happened quietly.** Some of the most used PWAs today run on laptops: Microsoft Teams on Linux, Outlook, YouTube Music, Google Meet, Spotify's web player, and countless internal tools. Nobody calls them "web apps" any more; they are just apps. **iOS got there.** It took until 2018 for service workers and until 2023 for push, but iPhone and iPad now support most of what matters, and since iOS 26 every Home Screen site opens as a web app. ## What did not **Install never became a habit for most people.** Users understand app stores; "install this website" still confuses many. The best results came when sites were fast and useful first, and installation was a bonus. **The capability gap closed unevenly.** Bluetooth, USB, NFC, file handling and background sync landed in Chromium; Safari and Firefox chose not to implement many of them. Cross-browser apps still have to design around the gaps. **Discovery stayed hard.** There is no store for the web. Google Play and the Microsoft Store accept PWAs, but most people still find apps in the store of their phone's maker. **Policy risk is real.** The 2024 episode, when Apple briefly planned to remove Home Screen web apps in the EU, showed how much depends on decisions made far from developers. ## What comes next Better install UI with screenshots and descriptions, isolated web apps for high-security use cases, more device APIs, and, we hope, more cross-browser agreement on background work. The fundamentals will not change: build a fast, reliable website, and let it become an app for the people who want one. --- # The install prompt is not your front door URL: https://www.pwa.live/blog/the-install-prompt-is-not-your-front-door/ Earn the install. Do not demand it. You have built a PWA. The natural instinct is to tell everyone, immediately, with a big banner: **Install our app!** Please don't. Think about how it feels: you arrive at a site you have never seen, and before you have read a sentence it asks for a permanent place on your phone. It is the web equivalent of a shop assistant asking for your phone number as you walk in. The browsers learned this the hard way. Chrome's install prompts have an engagement heuristic for a reason, and Safari never had a prompt at all. **Ask when it helps the person**, not when it helps your metrics: - after they finish something useful (saved a note, completed a booking); - on their second or third visit; - next to a feature that genuinely works better installed, like offline reading or notifications. Keep the button small and in a consistent place, like the header icon on PWA.live, which only appears when your browser can install the site. Our [install button generator](/tools/install-button-generator/) writes that pattern for you, and [this guide](/learn/custom-install-button/) explains it. --- # Why we built PWA.live, and why it is a PWA itself URL: https://www.pwa.live/blog/why-we-built-pwa-live/ Because the best answer was spread across twenty tabs. Ask "does push work on iPhone?" and you get answers from 2019 saying no, answers from 2023 saying yes, and answers that forget to mention you have to add the app to the Home Screen first. Ask "what are the install criteria?" and half the pages still say you need a service worker with a fetch handler. The information exists. It is just scattered across browser blogs, standards trackers, release notes and old conference talks, and much of it is written by one vendor about its own browser. So we built **PWA.live**: one independent place with [guides](/learn/) that show when they were last reviewed, a [support table](/browser-support/) we check by hand, [tools](/tools/) that do the fiddly parts, and an honest [directory of open-source projects](/open-source/) that says when something is no longer maintained. And we built it as a PWA. Install it from your browser, then switch your phone to flight mode: the pages you have read are still there, the tools still work, and a friendly [offline page](/offline/) lists what you can open. If we can't make our own site work that way, we have no business telling you how to. If something here is wrong or out of date, [tell us](/contact/). That is the whole point. --- # Workbox in 2026: still a good choice? URL: https://www.pwa.live/blog/workbox-in-2026/ Short answer: yes, but look at Serwist too. Workbox has been the default service worker library for most of the last decade. It is built into many frameworks' PWA plugins, and its precaching, routing and strategies modules shaped how most of us think about caching. ## What changed Development slowed after Google's Chrome team moved people to other work. Releases became less frequent and mostly about dependencies; version 7.4 arrived in November 2025. Meanwhile, the community forked it as **[Serwist](/open-source/serwist/)**, with a single modern package, TypeScript throughout, and first-party integrations for Next.js, Vite and SvelteKit. ## Our advice - **Using Vite?** Use [vite-plugin-pwa](/open-source/vite-plugin-pwa/). It uses Workbox underneath and is very actively maintained; you rarely touch Workbox directly. - **Using Next.js?** Use Serwist. The old `next-pwa` plugin is no longer actively maintained. - **Existing Workbox setup that works?** Keep it. There is no urgent reason to migrate, and Serwist's API is close enough that moving later is not hard. - **Small site?** You may not need a library at all. Our [service worker generator](/tools/service-worker-generator/) writes a solid plain-JavaScript worker. The comparison in detail: [Workbox and Serwist](/learn/workbox-and-serwist/). --- # Add your own "Install app" button with beforeinstallprompt URL: https://www.pwa.live/learn/custom-install-button/ Offer installation at the right moment, in your own words. Chromium browsers (Chrome, Edge, Samsung Internet, Opera) fire a `beforeinstallprompt` event when your site meets the [install criteria](/learn/install-criteria/). You can catch it, keep it, and show the install dialog from your own button at a better moment. ## The code ```js let deferredPrompt = null; const btn = document.querySelector('#install'); window.addEventListener('beforeinstallprompt', (event) => { event.preventDefault(); // stop the mini-infobar on Android deferredPrompt = event; // keep it for later btn.hidden = false; // now it makes sense to show the button }); btn.addEventListener('click', async () => { if (!deferredPrompt) return; deferredPrompt.prompt(); // must be called from a user gesture const { outcome } = await deferredPrompt.userChoice; // 'accepted' or 'dismissed' analytics('install_prompt', { outcome }); deferredPrompt = null; // each event can be used only once btn.hidden = true; }); window.addEventListener('appinstalled', () => { btn.hidden = true; analytics('app_installed'); }); ``` `prompt()` can only be called once per event. If the user dismisses it, Chrome fires the event again later (after a cool-down), so keep listening. ## When to show it The best install prompts appear **after** the user has seen value: - after they finish a task (a booking, a saved note, a completed lesson); - on their second or third visit; - next to a feature that works better installed (offline reading, notifications). Avoid showing a full-screen install banner on the first page view. It annoys people, and it has the opposite effect. ## iPhone and iPad `beforeinstallprompt` does not exist in Safari. Detect iOS and, if the app is not already running standalone, show short instructions instead: ```js const isIOS = /iphone|ipad|ipod/i.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1); const standalone = matchMedia('(display-mode: standalone)').matches || navigator.standalone; if (isIOS && !standalone) showHint('Tap the Share button, then "Add to Home Screen".'); ``` See [install on iPhone and iPad](/learn/install-on-ios/) for wording and screenshots. ## Hide the button when installed ```css @media (display-mode: standalone) { #install { display: none; } } ``` ## Ready-made components - [pwa-install](/open-source/pwa-install/) by Gleb Khmyznikov: a web component with polished install dialogs for Chromium, with gallery screenshots, and step-by-step guides for iOS, iPadOS and macOS Safari. - Our [install button generator](/tools/install-button-generator/) writes the code above, with your own text and an iOS hint. PWA.live uses this exact pattern: the install icon in the header appears only when your browser can install the site. --- # How to install a PWA on iPhone and iPad (and how to tell your users) URL: https://www.pwa.live/learn/install-on-ios/ Share, then Add to Home Screen. Here is how to explain it. There is no install button on iPhone and iPad that a website can trigger. People add web apps themselves. Here are the steps, and how to guide your users. ## Steps in Safari (iOS and iPadOS 26) 1. Open the site in Safari. 2. Tap the **More** (three dots) button next to the address bar, then **Share**. (On older versions, tap the **Share** icon: a square with an arrow pointing up.) 3. Scroll down and tap **Add to Home Screen**. 4. Leave **Open as Web App** switched on, edit the name if you like, and tap **Add**. The app appears on the Home Screen and opens in its own window without Safari's toolbars. ## In Chrome, Edge or Firefox on iOS Since iOS 16.4, other browsers can add web apps too: open their **Share** menu and choose **Add to Home Screen**. The app still runs on Apple's WebKit engine and opens on its own, not inside that browser. ## What changed in iOS 26 Before iOS 26, a site opened as a web app only if it was set up for it (a manifest with `display: standalone` or the `apple-mobile-web-app-capable` tag); otherwise the icon was a bookmark that opened Safari. Since iOS and iPadOS 26, **every** site added to the Home Screen opens as a web app by default, and users choose with the **Open as Web App** switch. ## Wording that works Keep it to one line with the icon, shown only on iOS and only when not already installed: > Install this app: tap **Share**, then **Add to Home Screen**. Show it when it is useful: after a second visit, or next to a feature that needs installation, such as notifications. ```js const ios = /iphone|ipad|ipod/i.test(navigator.userAgent) || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1); const installed = navigator.standalone || matchMedia('(display-mode: standalone)').matches; if (ios && !installed && visits() >= 2) showHint(); ``` The [install button generator](/tools/install-button-generator/) writes this with your own text, and the [pwa-install](/open-source/pwa-install/) component shows a step-by-step dialog. ## Notifications need installation On iPhone and iPad, **web push only works for web apps added to the Home Screen** (iOS 16.4 and later). In Safari tabs, `Notification.requestPermission()` is not available. So if your app relies on notifications, explain installation first: see [push on iPhone and iPad](/learn/pwa-on-ios/#push-notifications). ## Mac On a Mac with Safari 17 or later: **File > Add to Dock**, or **Share > Add to Dock**. --- # Detect if your PWA is installed, and count installs URL: https://www.pwa.live/learn/detect-installed-pwa/ Running in a tab or as an app? Here is how to know. ## Is it running as an installed app right now? ```js function displayMode() { if (navigator.standalone) return 'standalone-ios'; for (const m of ['fullscreen', 'standalone', 'minimal-ui', 'window-controls-overlay']) { if (matchMedia(`(display-mode: ${m})`).matches) return m; } return 'browser'; } ``` Send `displayMode()` with every page view as a custom dimension. In CSS, use `@media (display-mode: standalone)`. ## Was it launched from the icon? Give your manifest a tagged start URL: ```json "start_url": "/?source=pwa" ``` Launches from the icon (and from [shortcuts](/learn/richer-install-ui/), if you tag them too) carry the parameter. Count them in analytics, then remove the parameter with `history.replaceState` so it is not shared. ## Did they install it? - **Chromium**: listen for `appinstalled`, and record `userChoice.outcome` from `beforeinstallprompt` ([custom install button](/learn/custom-install-button/)). - **iOS**: there is no event. The first launch in standalone mode is your best signal: store a flag in `localStorage` and send an "installed launch" event once. ## Is it installed, from a normal tab? `navigator.getInstalledRelatedApps()` (Chromium) can tell a page whether the user has installed a related app: your Android app, or your PWA itself if you list it in `related_applications` with `"platform": "webapp"` and the manifest URL. ```js const apps = await navigator.getInstalledRelatedApps?.() ?? []; if (apps.length) hideInstallPromo(); ``` Support is limited (mainly Chrome on Android and Windows), so treat it as a bonus. ## Respect privacy Display mode and install events are not personal data in themselves, but they go through your analytics, so they follow your consent rules. PWA.live only sends them to Google Analytics in production, after cookie consent. More in [PWA analytics](/learn/pwa-analytics/). --- # PWAs on iPhone and iPad in 2026: what works and what does not URL: https://www.pwa.live/learn/pwa-on-ios/ The full picture on Apple's mobile platforms. iPhone and iPad support most of what makes a PWA useful. The gaps are real but smaller than many developers think. Here is the current state. ## What works | Feature | Since | Notes | | --- | --- | --- | | Service workers, Cache API, offline | iOS 11.3 (2018) | Full support | | Web app manifest | iOS 11.3 | Name, icons, display, start_url, scope, theme colours, id (16.4) | | Add to Home Screen from other browsers | iOS 16.4 (2023) | Chrome, Edge, Firefox and others on iOS | | **Web Push** and notifications | iOS 16.4 | Home Screen web apps only, after a user gesture | | Badging API | iOS 16.4 | Home Screen web apps with notification permission | | Screen Wake Lock | iOS 16.4 | Keeps the screen on while your app is in use | | Every Home Screen site opens as a web app | iOS 26 (2025) | Users can switch it off per site | | IndexedDB, OPFS | Yes | Storage is separate per Home Screen app | | Web Share API | Yes | Share sheet from your app | | Payment Request (Apple Pay) | Yes | | | WebAuthn and passkeys | Yes | | ## What does not (yet) - **No install prompt** and no `beforeinstallprompt`. Users add apps through the Share menu: see [install on iOS](/learn/install-on-ios/). - **No Background Sync, Periodic Background Sync or Background Fetch.** Sync when the app opens or becomes visible instead. - **No Web Share Target** (`share_target`): your app cannot appear in the iOS share sheet as a target. - **No file handlers, protocol handlers, Web Bluetooth, Web USB, Web NFC or Web Serial.** - **All iOS browsers use WebKit**, so Chrome on iOS has Safari's feature set (outside the EU's browser-engine rules, which few browsers use for Home Screen apps). ## Push notifications Push works for **Home Screen web apps** on iOS and iPadOS 16.4 and later, using standard Web Push with VAPID keys, exactly like other browsers. Rules: 1. The user must have **added the app to the Home Screen** and opened it from there. 2. Call `Notification.requestPermission()` **from a user gesture** such as a button tap. 3. Subscribe with `pushManager.subscribe({ userVisibleOnly: true, applicationServerKey })`. 4. Always **show a notification** for every push you receive; silent pushes are not allowed. See [web push notifications](/learn/web-push-notifications/) for the full code. Notifications appear on the Lock Screen, in Notification Center and on a paired Apple Watch, and respect Focus modes. ## Storage Home Screen web apps have their **own storage**, separate from Safari's. Data saved in Safari before installing is **not** carried over, so do not rely on a login made in Safari. Home Screen apps are also exempt from Safari's seven-day storage deletion rule. See [storage and quota](/learn/storage-quota-and-eviction/). ## The 2024 EU episode In February 2024, Apple said that iOS 17.4 would drop Home Screen web apps in the European Union, citing its Digital Markets Act changes to allow other browser engines. EU beta users saw web apps open as plain Safari bookmarks. After criticism from developers and questions from the European Commission, Apple reversed the decision on 1 March 2024, and Home Screen web apps kept working in the EU, still built on WebKit. ## Practical tips - Provide an opaque 180 px **apple-touch-icon**. - Use `viewport-fit=cover` and `env(safe-area-inset-*)` for notches and the Home indicator. - Add a visible **back** control: standalone apps have no back button, though a swipe from the left edge works. - Test on a real device; the Simulator does not support push. - Ask for notification permission in context, never on launch. Q: Do push notifications work for PWAs on iPhone? A: Yes, since iOS and iPadOS 16.4, for web apps added to the Home Screen. The user must allow notifications after tapping a button in the installed app. Q: Did Apple remove PWAs in the EU? A: No. Apple announced it would in February 2024 for iOS 17.4, then reversed the decision on 1 March 2024. Home Screen web apps continue to work in the EU. Q: Can a PWA on iPhone use Bluetooth? A: No. Web Bluetooth is not supported in WebKit. You would need a native or hybrid app for that. --- # 5miles URL: https://www.pwa.live/directory/5miles/ A local buy-and-sell marketplace for second-hand goods, jobs and services. A local buy-and-sell marketplace for second-hand goods, jobs and services. ## What makes it a PWA - Mobile PWA for faster browsing on slow networks - Installable from the browser ## Published results | Result | Source | | --- | --- | | Bounce rate down 50% | PWA Stats | | Conversions up 30% | PWA Stats | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.5miles.com](https://www.5miles.com) --- # PWAs on Android: WebAPKs, Chrome, Samsung Internet and more URL: https://www.pwa.live/learn/pwa-on-android/ The platform where PWAs feel most native. Android is where PWAs feel most like native apps. ## WebAPKs When you install a PWA from **Chrome** on Android, Chrome asks Google's servers to build a **WebAPK**: a small, signed Android package generated from your manifest. Because it is a real package: - the app appears in the **app drawer** and in **Settings > Apps**, with its own storage and notification settings; - it can be a target in the **share sheet** if your manifest has a `share_target`; - it can open your site's links (**intent filters** for your scope); - **shortcuts** appear on a long-press of the icon. Chrome checks the manifest regularly and asks the WebAPK server for an update when important fields change (name, icons, shortcuts, and others). Changes to `name` or icons may ask the user to confirm. Keep your `id` stable: [id, scope and start_url](/learn/manifest-id-scope-start-url/). Without Google Play services (some devices), Chrome falls back to a simpler home-screen shortcut. ## Other Android browsers - **Samsung Internet** also creates WebAPKs on Samsung devices and supports `beforeinstallprompt`. - **Edge**, **Opera** and **Brave** (Chromium-based) support installation with their own flows. - **Firefox for Android** can add sites to the Home screen and open them in their own window. ## What works on Android Practically everything in our [support table](/browser-support/) that Chromium supports, including push, background sync, periodic background sync, background fetch, share target, contact picker, Web NFC and Web Bluetooth. Desktop-only items (file handlers, window controls overlay) do not apply. ## In Google Play To be listed in Google Play, wrap your PWA in a [Trusted Web Activity](/learn/google-play-twa/) with Bubblewrap or PWABuilder. The Play listing and the WebAPK are separate installs, so promote one or the other. ## Testing Use `chrome://inspect` on your computer with the phone connected over USB. Installed PWAs show up as separate targets. `chrome://webapks` on the phone lists installed WebAPKs with their last update check. --- # Adobe Photoshop on the web URL: https://www.pwa.live/directory/adobe-photoshop-web/ A browser version of Photoshop for editing images and documents stored in the cloud. A browser version of Photoshop for editing images and documents stored in the cloud. ## What makes it a PWA - Installable desktop web app - Heavy C++ code compiled to WebAssembly - Origin Private File System for fast local storage - UI built with Lit web components Adobe and the Chrome team wrote up the engineering behind it on web.dev in 2021. Visit it: [photoshop.adobe.com](https://photoshop.adobe.com) --- # PWAs on Windows, macOS, ChromeOS and Linux URL: https://www.pwa.live/learn/pwa-on-desktop/ Installed web apps on the big screen. Desktop PWAs have quietly become some of the most used: Microsoft Teams and Outlook, YouTube Music, Spotify, Google Meet and many internal business tools run as installed web apps every day. ## Chrome and Edge On Windows, macOS, Linux and ChromeOS, Chrome and Edge show an **install icon** in the address bar when your site meets the [install criteria](/learn/install-criteria/). Installed apps: - get their own window, Dock or taskbar icon, and entry in the Start menu or Applications folder; - appear in the OS app switcher and can launch at login (Edge and Chrome both offer this); - support [file handlers, protocol handlers, launch handler and window controls overlay](/learn/desktop-integration/); - show [shortcuts](/learn/richer-install-ui/) in the taskbar jump list or Dock menu; - can show a [badge](/learn/badging-api/) on the icon. **Edge** adds extras: apps can be pinned to the sidebar (`edge_side_panel` in the manifest) and published to the [Microsoft Store](/learn/microsoft-store/). **ChromeOS** treats PWAs as first-class apps, alongside Android apps. ## Safari on macOS Since **Safari 17** (macOS Sonoma), **File > Add to Dock** turns any site into a web app with its own window and Dock icon. Safari uses the manifest's name, icons, `start_url` and scope when present. Web apps in the Dock support **push notifications** and **badging**. Cookies are separate from Safari's, so users sign in again once. ## Firefox Firefox removed its first desktop site-specific browser feature in 2021. In 2025 it came back on **Windows** in Firefox 143 as "web apps" (also called taskbar tabs): pin a site to the taskbar and it opens in a minimal window tied to your Firefox profile. macOS and Linux support was announced to follow. ## Design for a window - Make the layout work in a narrow window, not just full-screen. - Consider [window controls overlay](/learn/display-modes/) for a native-looking title bar. - Use keyboard shortcuts, and do not trap `Ctrl+W` or `Cmd+Q`. - Links to other sites open in the browser; links inside your scope stay in the app. --- # Alibaba.com URL: https://www.pwa.live/directory/alibaba/ The business-to-business marketplace connecting buyers with manufacturers and suppliers worldwide. The business-to-business marketplace connecting buyers with manufacturers and suppliers worldwide. ## What makes it a PWA - Rebuilt the mobile site as a PWA - Add to Home Screen prompts - Push notifications ## Published results | Result | Source | | --- | --- | | 76% higher conversions across browsers | Google case study (web.dev) | | 4x higher interaction rate from Add to Home Screen | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.alibaba.com](https://www.alibaba.com) --- # AliExpress URL: https://www.pwa.live/directory/aliexpress/ Alibaba Group's global consumer marketplace. Alibaba Group's global consumer marketplace. ## What makes it a PWA - Cross-browser PWA instead of pushing every visitor to the native app - Service worker caching - Add to Home Screen ## Published results | Result | Source | | --- | --- | | 104% more conversions for new users across all browsers | Google case study (web.dev) | | 2x more pages visited per session | Google case study (web.dev) | | 74% more time spent per session | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.aliexpress.com](https://www.aliexpress.com) --- # BookMyShow URL: https://www.pwa.live/directory/bookmyshow/ India's largest entertainment ticketing platform, for films, events, plays and sport, with over 50 million monthly visitors. India's largest entertainment ticketing platform, for films, events, plays and sport, with over 50 million monthly visitors. ## What makes it a PWA - Mobile PWA built in about 10 months, aiming for checkout in under 30 seconds - Moved off its old PHP stack at the same time ## Published results | Result | Source | | --- | --- | | Over 80% more conversions | Google case study (web.dev) | | 54x smaller than the Android app and 180x smaller than the iOS app | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [in.bookmyshow.com](https://in.bookmyshow.com) --- # Clipchamp URL: https://www.pwa.live/directory/clipchamp/ A video editor that runs in the browser. A video editor that runs in the browser. Microsoft acquired it in 2021 and ships it as the built-in video editor in Windows 11. ## What makes it a PWA - Installable PWA on Windows and other platforms - Video processing in the browser with WebAssembly and modern media APIs A good example of a PWA shipped by an operating system vendor as a default app. Visit it: [clipchamp.com](https://clipchamp.com) --- # diagrams.net (draw.io) URL: https://www.pwa.live/directory/diagrams-net/ A free diagramming app for flowcharts, network diagrams and UML. A free diagramming app for flowcharts, network diagrams and UML. ## What makes it a PWA - Installable and works offline - Opens and saves local files - Open source Visit it: [app.diagrams.net](https://app.diagrams.net) --- # Elk URL: https://www.pwa.live/directory/elk/ A fast, open-source web client for Mastodon and the fediverse, built with Nuxt. A fast, open-source web client for Mastodon and the fediverse, built with Nuxt. ## What makes it a PWA - Installable PWA - Built with Nuxt and vite-plugin-pwa Visit it: [elk.zone](https://elk.zone) --- # Excalidraw URL: https://www.pwa.live/directory/excalidraw/ A virtual whiteboard for hand-drawn-looking sketches and diagrams. A virtual whiteboard for hand-drawn-looking sketches and diagrams. ## What makes it a PWA - Installable and works offline - Opens .excalidraw files from the desktop with file handling - Saves to local files with the File System Access API - Open source Visit it: [excalidraw.com](https://excalidraw.com) --- # Financial Times web app URL: https://www.pwa.live/directory/financial-times/ The business newspaper, which in 2011 launched an HTML5 web app for iPhone and iPad instead of relying on a native app, partly to keep its direct subscriber relationship. The business newspaper, which in 2011 launched an HTML5 web app for iPhone and iPad instead of relying on a native app, partly to keep its direct subscriber relationship. ## What makes it a PWA - An early web app on the Home Screen, years before the term PWA - Offline reading A pioneer: it showed a major publisher could build its main mobile experience on the web. Visit it: [www.ft.com](https://www.ft.com) --- # Flipkart URL: https://www.pwa.live/directory/flipkart/ India's largest online shop. India's largest online shop. In 2015 it briefly went app-only, then came back to the mobile web with Flipkart Lite, one of the first PWAs. ## What makes it a PWA - Flipkart Lite: service worker, Add to Home Screen and push - Designed for 2G networks, which 63% of its users were on ## Published results | Result | Source | | --- | --- | | 3x more time on site | Google case study (web.dev) | | 40% higher re-engagement | Google case study (web.dev) | | 70% more conversions among visitors arriving via Add to Home Screen | Google case study (web.dev) | | 3x lower data usage | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.flipkart.com](https://www.flipkart.com) --- # Forbes URL: https://www.pwa.live/directory/forbes/ The business and finance publisher, which rebuilt its mobile site as a PWA in 2017 with a card-based, swipeable reading experience. The business and finance publisher, which rebuilt its mobile site as a PWA in 2017 with a card-based, swipeable reading experience. ## What makes it a PWA - Service worker caching - Push notifications Visit it: [www.forbes.com](https://www.forbes.com) --- # Goibibo URL: https://www.pwa.live/directory/goibibo/ An Indian online travel agency for flights, hotels, buses and trains. An Indian online travel agency for flights, hotels, buses and trains. ## What makes it a PWA - Mobile PWA built for speed on Indian networks ## Published results | Result | Source | | --- | --- | | 60% more conversions | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.goibibo.com](https://www.goibibo.com) --- # Google Chat URL: https://www.pwa.live/directory/google-chat/ Google Workspace's team messaging app. Google Workspace's team messaging app. Google replaced its Electron desktop app with an installable PWA in 2021. ## What makes it a PWA - Installable desktop PWA - Notifications and badging Visit it: [chat.google.com](https://chat.google.com) --- # Google Meet URL: https://www.pwa.live/directory/google-meet/ Google's video meetings app, installable as a desktop web app from Chrome. Google's video meetings app, installable as a desktop web app from Chrome. ## What makes it a PWA - Installable PWA with its own window - Video and audio with WebRTC Visit it: [meet.google.com](https://meet.google.com) --- # Housing.com URL: https://www.pwa.live/directory/housing-com/ An Indian property portal for buying, selling and renting homes. An Indian property portal for buying, selling and renting homes. ## What makes it a PWA - One of the early Indian PWAs, built for slow networks - Offline support and push notifications ## Published results | Result | Source | | --- | --- | | 38% more conversions | Google case study (web.dev) | | 40% lower bounce rate | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [housing.com](https://housing.com) --- # Hulu URL: https://www.pwa.live/directory/hulu/ The US streaming service, which replaced its Windows desktop app with a PWA in 2019. The US streaming service, which replaced its Windows desktop app with a PWA in 2019. ## What makes it a PWA - Installable desktop PWA replacing a native Windows app Visit it: [www.hulu.com](https://www.hulu.com) --- # Instagram URL: https://www.pwa.live/directory/instagram/ Meta's photo and video sharing network. Meta's photo and video sharing network. Its mobile website can be installed as a web app. ## What makes it a PWA - Installable web app - Lighter alternative to the native app Visit it: [www.instagram.com](https://www.instagram.com) --- # Jumia URL: https://www.pwa.live/directory/jumia/ One of Africa's largest e-commerce platforms, serving customers on expensive, slow mobile data. One of Africa's largest e-commerce platforms, serving customers on expensive, slow mobile data. ## What makes it a PWA - PWA built for low-end devices and slow networks - Push notifications ## Published results | Result | Source | | --- | --- | | 33% higher conversion rate | Google case study (web.dev) | | 50% lower bounce rate | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.jumia.com.ng](https://www.jumia.com.ng) --- # Kiwix JS PWA URL: https://www.pwa.live/directory/kiwix/ An offline reader for Wikipedia and other reference content: download whole archives and read them with no connection. An offline reader for Wikipedia and other reference content: download whole archives and read them with no connection. ## What makes it a PWA - Works entirely offline from downloaded archives - Stores large files with modern browser storage APIs - Open source Visit it: [pwa.kiwix.org](https://pwa.kiwix.org) --- # Konga URL: https://www.pwa.live/directory/konga/ A Nigerian online marketplace. A Nigerian online marketplace. ## What makes it a PWA - Konga Lite PWA for slow, costly 2G and 3G connections ## Published results | Result | Source | | --- | --- | | 92% less data for the first load than the native app | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.konga.com](https://www.konga.com) --- # Lancôme URL: https://www.pwa.live/directory/lancome/ L'Oréal's luxury cosmetics brand. L'Oréal's luxury cosmetics brand. It considered a native app, then decided a PWA suited occasional mobile shoppers better. ## What makes it a PWA - Mobile PWA with push notifications ## Published results | Result | Source | | --- | --- | | Time until a page was usable cut by 84% | Google case study (web.dev) | | Conversions up 17% | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.lancome-usa.com](https://www.lancome-usa.com) --- # MakeMyTrip URL: https://www.pwa.live/directory/makemytrip/ India's leading online travel company, with about eight million monthly visitors at the time of its case study. India's leading online travel company, with about eight million monthly visitors at the time of its case study. ## What makes it a PWA - PWA alongside the native app ("we balance both strategies") - Offline support and one-tap access ## Published results | Result | Source | | --- | --- | | 3x higher conversion rate on the PWA | Google case study (web.dev) | | 38% faster page loads | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.makemytrip.com](https://www.makemytrip.com) --- # Mastodon URL: https://www.pwa.live/directory/mastodon/ The decentralised social network. The decentralised social network. Every Mastodon server's web interface can be installed as a PWA with push notifications. ## What makes it a PWA - Installable on every server - Web Push notifications - Open source Visit it: [joinmastodon.org](https://joinmastodon.org) --- # Microsoft 365 on the web URL: https://www.pwa.live/directory/microsoft-365/ Microsoft's web portal for Word, Excel, PowerPoint and its other apps, installable as a desktop web app. Microsoft's web portal for Word, Excel, PowerPoint and its other apps, installable as a desktop web app. ## What makes it a PWA - Installable PWA in Edge and Chrome Visit it: [www.microsoft365.com](https://www.microsoft365.com) --- # Microsoft Teams URL: https://www.pwa.live/directory/microsoft-teams/ Microsoft's chat and meetings app. Microsoft's chat and meetings app. In 2022 Microsoft made a PWA the way to run Teams on Linux, replacing the Electron app there. ## What makes it a PWA - Installable PWA for Linux (and other platforms) - Notifications and badging Visit it: [teams.microsoft.com](https://teams.microsoft.com) --- # Nikkei URL: https://www.pwa.live/directory/nikkei/ Japan's leading business newspaper, which rebuilt its site as a fast PWA. Japan's leading business newspaper, which rebuilt its site as a fast PWA. ## What makes it a PWA - Service worker caching and prefetching - Offline reading ## Published results | Result | Source | | --- | --- | | 2.3x more organic traffic | Google case study (web.dev) | | 58% more subscriptions | Google case study (web.dev) | | 49% more daily active users | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.nikkei.com](https://www.nikkei.com) --- # Ola URL: https://www.pwa.live/directory/ola/ India's ride-hailing company. India's ride-hailing company. It built a PWA for riders in smaller cities, where phones and networks are weaker. ## What makes it a PWA - Tiny PWA for low-end phones and 2G and 3G networks ## Published results | Result | Source | | --- | --- | | About 200 KB, compared with a 60 MB Android app | Google case study (web.dev) | | 68% more mobile traffic from smaller cities | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [book.olacabs.com](https://book.olacabs.com) --- # OLX URL: https://www.pwa.live/directory/olx/ The online classifieds marketplace, popular across India, Latin America and other regions. The online classifieds marketplace, popular across India, Latin America and other regions. ## What makes it a PWA - Mobile PWA with push notifications - Faster time to interactive ## Published results | Result | Source | | --- | --- | | 250% more re-engagement with push notifications | PWA Stats | | 146% higher click-through rate on ads | PWA Stats | | 80% lower bounce rate | PWA Stats | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.olx.in](https://www.olx.in) --- # Outlook on the web URL: https://www.pwa.live/directory/microsoft-outlook/ Microsoft's email and calendar service, installable as a desktop web app. Microsoft's email and calendar service, installable as a desktop web app. ## What makes it a PWA - Installable PWA with notifications and badging Visit it: [outlook.office.com](https://outlook.office.com) --- # Photopea URL: https://www.pwa.live/directory/photopea/ A free image editor in the browser that opens PSD, XCF, Sketch and many other formats. A free image editor in the browser that opens PSD, XCF, Sketch and many other formats. ## What makes it a PWA - Installable web app - Works with local files Visit it: [www.photopea.com](https://www.photopea.com) --- # Pinterest URL: https://www.pwa.live/directory/pinterest/ The visual discovery network. The visual discovery network. In 2017 its mobile web brought in under 10% of sign-ups, so the team rebuilt it as a PWA in about three months. ## What makes it a PWA - JavaScript cut from 650 KB to 150 KB (minified and gzipped) - Service worker caching and an app shell - Install and push ## Published results | Result | Source | | --- | --- | | Time spent of five minutes or more up 40% | Pinterest engineering | | User-generated ad revenue up 44% | Pinterest engineering | | Core engagements up 60% | Pinterest engineering | | New sign-ups up 843% year on year | Pinterest engineering, 2018 | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.pinterest.com](https://www.pinterest.com) --- # Pokedex.org URL: https://www.pwa.live/directory/pokedex-org/ A small offline-first Pokémon reference by Nolan Lawson, widely studied as an early PWA example. A small offline-first Pokémon reference by Nolan Lawson, widely studied as an early PWA example. ## What makes it a PWA - Fully offline with a service worker and IndexedDB - Work moved to Web Workers to keep the UI smooth - Open source Visit it: [www.pokedex.org](https://www.pokedex.org) --- # Rakuten 24 URL: https://www.pwa.live/directory/rakuten-24/ Rakuten's online store for everyday essentials. Rakuten's online store for everyday essentials. ## What makes it a PWA - Install promotion with a custom install button - Service worker caching ## Published results | Result | Source | | --- | --- | | Installed users visited 310% more often | Google case study (web.dev) | | Installed users converted 200% more | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.rakuten24.jp](https://www.rakuten24.jp) --- # Spotify web player URL: https://www.pwa.live/directory/spotify/ The music streaming service's web player, which can be installed as a desktop app from the browser. The music streaming service's web player, which can be installed as a desktop app from the browser. ## What makes it a PWA - Installable web app with its own window - Media Session API for media keys and lock screen controls Visit it: [open.spotify.com](https://open.spotify.com) --- # Squoosh URL: https://www.pwa.live/directory/squoosh/ An image compression app that converts and resizes images with codecs compiled to WebAssembly. An image compression app that converts and resizes images with codecs compiled to WebAssembly. ## What makes it a PWA - Works fully offline - Installable, with a share target on Android - Open source Visit it: [squoosh.app](https://squoosh.app) --- # Starbucks URL: https://www.pwa.live/directory/starbucks/ The coffee chain's ordering app on the web, built so customers can browse the menu, customise drinks and order even with patchy connections. The coffee chain's ordering app on the web, built so customers can browse the menu, customise drinks and order even with patchy connections. ## What makes it a PWA - Works offline for browsing the menu and building an order - React with server-side rendering ## Published results | Result | Source | | --- | --- | | The PWA was 99.84% smaller than the iOS app (233 KB vs 148 MB) | Starbucks and its agency | | Daily active web users doubled | Starbucks and its agency | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [app.starbucks.com](https://app.starbucks.com) --- # Telegram Web URL: https://www.pwa.live/directory/telegram-web/ The messaging service's web client, which can be installed as an app. The messaging service's web client, which can be installed as an app. ## What makes it a PWA - Installable web app - Notifications Visit it: [web.telegram.org](https://web.telegram.org) --- # Tinder URL: https://www.pwa.live/directory/tinder/ The dating app. The dating app. Tinder Online, its PWA, aimed to reach people in new markets and on limited data. ## What makes it a PWA - Built in about three months with React and Redux - Service worker caching and push ## Published results | Result | Source | | --- | --- | | Load time cut from 11.91 s to 4.69 s | Google case study (web.dev) | | About 90% smaller than the Android app | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [tinder.com](https://tinder.com) --- # Trivago URL: https://www.pwa.live/directory/trivago/ The hotel search and price comparison site. The hotel search and price comparison site. ## What makes it a PWA - Install prompts and offline support ## Published results | Result | Source | | --- | --- | | Over 500,000 people added it to their home screen | Google case study (web.dev) | | 97% more clickouts to hotel offers | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [www.trivago.com](https://www.trivago.com) --- # Twitter Lite (now X) URL: https://www.pwa.live/directory/twitter-lite/ Twitter's mobile web app, made the default mobile web experience worldwide in April 2017. Twitter's mobile web app, made the default mobile web experience worldwide in April 2017. The site is now X. ## What makes it a PWA - Under 1 MB, compared with more than 20 MB for the Android app at the time - Service worker, push, Add to Home Screen and a data saver mode ## Published results | Result | Source | | --- | --- | | 65% more pages per session | Google case study (web.dev) | | 75% more Tweets sent | Google case study (web.dev) | | 20% lower bounce rate | Google case study (web.dev) | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [x.com](https://x.com) --- # Uber (m.uber) URL: https://www.pwa.live/directory/uber/ Uber's web app for booking rides, rebuilt so it works on low-end phones and slow networks in new markets. Uber's web app for booking rides, rebuilt so it works on low-end phones and slow networks in new markets. ## What makes it a PWA - Core app about 50 KB with Preact and server-side rendering - Works on 2G networks ## Published results | Result | Source | | --- | --- | | Usable in about 3 seconds on 2G | Uber Engineering | These figures are what the company or its partners reported at the time, compared with their previous mobile site unless stated. We quote them; we did not measure them. Visit it: [m.uber.com](https://m.uber.com) --- # Visual Studio Code for the Web URL: https://www.pwa.live/directory/vscode-dev/ A lightweight version of VS Code that runs entirely in the browser and edits local folders and GitHub repositories. A lightweight version of VS Code that runs entirely in the browser and edits local folders and GitHub repositories. ## What makes it a PWA - Installable PWA - Opens local folders with the File System Access API Visit it: [vscode.dev](https://vscode.dev) --- # YouTube URL: https://www.pwa.live/directory/youtube/ Google's video platform, installable as a desktop app from Chrome and Edge. Google's video platform, installable as a desktop app from Chrome and Edge. ## What makes it a PWA - Installable web app with its own window Visit it: [www.youtube.com](https://www.youtube.com) --- # YouTube Music URL: https://www.pwa.live/directory/youtube-music/ Google's music streaming service. Google's music streaming service. Its desktop experience is an installable PWA rather than a native app. ## What makes it a PWA - Installable PWA with media keys support - Media Session API Visit it: [music.youtube.com](https://music.youtube.com) --- # Web push notifications for PWAs: a complete guide with VAPID URL: https://www.pwa.live/learn/web-push-notifications/ From permission to notification, with working code. Web push lets your server send a message that the user's browser shows as a system notification, even when your site is closed. It works in Chrome, Edge, Firefox, Samsung Internet, Safari on macOS, and in Home Screen web apps on iPhone and iPad (iOS 16.4 and later). ## How the pieces fit 1. Your page asks the user for **permission**. 2. The browser **subscribes** to its push service (run by Google, Mozilla, Apple or Microsoft) and gives you a **subscription**: an endpoint URL and two keys. 3. You store the subscription on your server. 4. To notify, your server sends an **encrypted** message to the endpoint, signed with your **VAPID** key. 5. The push service wakes your **service worker**, which shows the notification. ## 1. Make VAPID keys (once) VAPID keys identify your server to push services. Generate a pair with the [VAPID key generator](/tools/vapid-keys/) on this site (it runs in your browser), or with `npx web-push generate-vapid-keys`. The public key goes in your page; the private key stays on your server. ## 2. Ask for permission at the right moment Never on page load. Ask after the user does something that makes notifications obviously useful ("Notify me when my order ships"), and **from a click**: Safari and Firefox require a user gesture, and Chrome quietly blocks sites that ask too early too often. ```js button.addEventListener('click', async () => { const permission = await Notification.requestPermission(); if (permission === 'granted') await subscribe(); }); ``` ## 3. Subscribe ```js async function subscribe() { const reg = await navigator.serviceWorker.ready; const sub = await reg.pushManager.subscribe({ userVisibleOnly: true, applicationServerKey: urlBase64ToUint8Array(VAPID_PUBLIC_KEY), }); await fetch('/api/push/subscribe', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(sub) }); } function urlBase64ToUint8Array(b64) { const pad = '='.repeat((4 - (b64.length % 4)) % 4); const raw = atob((b64 + pad).replace(/-/g, '+').replace(/_/g, '/')); return Uint8Array.from([...raw].map((c) => c.charCodeAt(0))); } ``` ## 4. Send from your server Node.js with [web-push](/open-source/web-push/): ```js import webpush from 'web-push'; webpush.setVapidDetails('mailto:support@example.com', VAPID_PUBLIC, VAPID_PRIVATE); await webpush.sendNotification(subscription, JSON.stringify({ title: 'Order shipped', body: 'It arrives Thursday.', url: '/orders/123' }), { TTL: 3600, urgency: 'normal' }); ``` PHP with [web-push-php](/open-source/web-push-php/), Python with [pywebpush](/open-source/pywebpush/), and libraries for Go, Java and C# work the same way. When a push service answers **404 or 410**, the subscription has expired: delete it. ## 5. Show it in the service worker ```js self.addEventListener('push', (event) => { const data = event.data ? event.data.json() : {}; event.waitUntil(self.registration.showNotification(data.title || 'Update', { body: data.body, icon: '/icons/icon-192.png', badge: '/icons/badge-72.png', tag: data.tag, // replaces an older notification with the same tag data: { url: data.url || '/' }, })); }); self.addEventListener('notificationclick', (event) => { event.notification.close(); const url = new URL(event.notification.data.url, self.location.origin).href; event.waitUntil(clients.matchAll({ type: 'window', includeUncontrolled: true }).then((wins) => { const open = wins.find((w) => w.url === url); return open ? open.focus() : clients.openWindow(url); })); }); ``` **Always show a notification** for every push. `userVisibleOnly: true` is a promise you make, and browsers may revoke permission if you break it. ## Rules on iPhone and iPad Push only works in web apps **added to the Home Screen**, and permission must be requested from a tap inside the installed app. See [PWAs on iPhone and iPad](/learn/pwa-on-ios/). ## Test without a server Our [notification tester](/tools/notification-tester/) asks for permission and shows a notification through this site's own service worker, so you can see how notifications look on your device. ## Good practice - Let people choose topics and frequency, and turn them off in your app. - Use `tag` to replace rather than pile up notifications. - Keep payloads small (under about 3 KB) and fetch details when the notification is clicked. - Respect quiet hours in the user's time zone. Q: Do I need Firebase Cloud Messaging for web push? A: No. Standard Web Push with VAPID keys works with every browser's push service directly. FCM is one option, not a requirement. Q: Why does my permission prompt not appear? A: Most browsers require the request to come from a user gesture, and Chrome may show a quieter prompt for sites that are often blocked. On iOS the app must be opened from the Home Screen. --- # The Badging API: show a count on your app icon URL: https://www.pwa.live/learn/badging-api/ Unread counts on your app icon, like a native app. The **Badging API** puts a number, or a dot, on your installed app's icon: in the Windows taskbar, the macOS Dock, the ChromeOS shelf, and the iPhone and iPad Home Screen. ```js // From a page or the service worker if ('setAppBadge' in navigator) { navigator.setAppBadge(3); // show 3 navigator.setAppBadge(); // show a dot (no number) navigator.clearAppBadge(); // remove it } ``` ## Where it works - **Chrome and Edge** on Windows, macOS and ChromeOS, for installed apps. - **Safari** on iOS and iPadOS 16.4+ for Home Screen web apps, and on macOS for web apps in the Dock. On Apple platforms the app needs **notification permission** for badges to show. - Not on Android: Android shows notification dots from your notifications instead. ## From a push message The most useful pattern is updating the badge when a push arrives, so it is right even when the app is closed: ```js self.addEventListener('push', (event) => { const data = event.data.json(); event.waitUntil(Promise.all([ self.registration.showNotification(data.title, { body: data.body }), navigator.setAppBadge?.(data.unread), ])); }); ``` Clear it when the user opens the relevant screen. Keep the number meaningful: unread messages or tasks that need action, not marketing. --- # Background Sync and Periodic Background Sync URL: https://www.pwa.live/learn/background-sync/ Send it later, when the connection comes back. ## Background Sync (one-off) When a user does something offline (sends a message, saves a form), you store it locally and ask the browser to wake your service worker when the connection is back, **even if the tab has been closed**. ```js // In the page, after saving the item to IndexedDB const reg = await navigator.serviceWorker.ready; if ('sync' in reg) await reg.sync.register('send-outbox'); else flushOutbox(); // fallback: try now, and again on 'online' ``` ```js // In the service worker self.addEventListener('sync', (event) => { if (event.tag === 'send-outbox') event.waitUntil(flushOutbox()); }); ``` If `flushOutbox()` rejects, the browser retries later with back-off, a few times. Workbox's `BackgroundSyncPlugin` wraps this pattern for failed `fetch` requests. ## Periodic Background Sync Lets an **installed** app refresh content in the background at intervals, for example to download today's articles before the morning commute. ```js const status = await navigator.permissions.query({ name: 'periodic-background-sync' }); if (status.state === 'granted') { await reg.periodicSync.register('refresh-news', { minInterval: 12 * 60 * 60 * 1000 }); } self.addEventListener('periodicsync', (event) => { if (event.tag === 'refresh-news') event.waitUntil(refreshNews()); }); ``` The browser decides when it actually runs, based on how much the user engages with the site, the network and battery. Expect at most about once a day for most apps. ## Support Both APIs are **Chromium-only** (Chrome, Edge, Samsung Internet, Opera). Safari and Firefox do not support them. So: - Always keep a fallback: flush the outbox on `online`, on `visibilitychange` and on app start. - Never make background sync the only way data gets sent. See [offline-first data](/learn/offline-first-data/) for the full outbox pattern. --- # Background Fetch: download large files reliably URL: https://www.pwa.live/learn/background-fetch/ Big downloads that survive closing the tab. Downloading a 200 MB podcast season or offline map from a service worker fails if the worker is stopped. **Background Fetch** hands the download to the browser, which shows a progress notification and keeps going even when your app is closed. ```js const reg = await navigator.serviceWorker.ready; if ('backgroundFetch' in reg) { const bgFetch = await reg.backgroundFetch.fetch('season-3', ['/media/s3e1.mp3', '/media/s3e2.mp3'], { title: 'Season 3', icons: [{ src: '/icons/podcast-192.png', sizes: '192x192', type: 'image/png' }], downloadTotal: 180 * 1024 * 1024, }); } ``` ```js self.addEventListener('backgroundfetchsuccess', (event) => { event.waitUntil((async () => { const cache = await caches.open('downloads'); for (const record of await event.registration.matchAll()) { await cache.put(record.request, await record.responseReady); } event.updateUI?.({ title: 'Season 3 is ready to play offline' }); })()); }); self.addEventListener('backgroundfetchfail', (event) => { /* tell the user */ }); self.addEventListener('backgroundfetchclick', () => clients.openWindow('/downloads/')); ``` ## Support and fallbacks Background Fetch is **Chromium-only**. Elsewhere, download in the page with `fetch()` and streams, show your own progress bar, and store results in the Cache API or OPFS. Ask for [persistent storage](/learn/storage-quota-and-eviction/) first for large downloads. --- # File handling and the File System Access API in PWAs URL: https://www.pwa.live/learn/file-handling/ Open, edit and save real files, like a desktop app. Editors, design tools and viewers need files. The web now has three levels of file support. ## 1. Open files from the OS (file_handlers) Declare file types in the [manifest](/learn/web-app-manifest/), and your installed app appears in "Open with" menus: ```json "file_handlers": [ { "action": "/open", "accept": { "text/markdown": [".md", ".markdown"] }, "launch_type": "single-client" } ] ``` Receive the files when the app launches: ```js if ('launchQueue' in window) { launchQueue.setConsumer(async (params) => { for (const handle of params.files) { const file = await handle.getFile(); openDocument(await file.text(), handle); } }); } ``` Supported by **Chrome and Edge on desktop** for installed apps. The first time, the user is asked to allow it. ## 2. Pick, read and save files (File System Access API) ```js const [handle] = await window.showOpenFilePicker({ types: [{ description: 'Markdown', accept: { 'text/markdown': ['.md'] } }] }); const text = await (await handle.getFile()).text(); // ... edit ... const writable = await handle.createWritable(); await writable.write(newText); await writable.close(); // saved to the same file ``` `showOpenFilePicker`, `showSaveFilePicker` and `showDirectoryPicker` are **Chromium desktop** features. Use [browser-fs-access](/open-source/browser-fs-access/) to fall back to `` and downloads in other browsers. ## 3. Private, fast storage (OPFS) The **Origin Private File System** gives your app a private file system that users do not see, supported in **all modern browsers**. It is ideal for caches, large data and SQLite databases: ```js const root = await navigator.storage.getDirectory(); const fh = await root.getFileHandle('data.bin', { create: true }); const w = await fh.createWritable(); await w.write(bytes); await w.close(); ``` In a worker, `createSyncAccessHandle()` gives very fast synchronous reads and writes; [SQLite Wasm](/open-source/sqlite-wasm/) uses it. Real-world examples: [Excalidraw](/directory/excalidraw/), [Photopea](/directory/photopea/) and [VS Code for the Web](/directory/vscode-dev/) all open and save local files. --- # Web Share and Web Share Target: share to and from your PWA URL: https://www.pwa.live/learn/share-target-and-web-share/ Use the system share sheet both ways. ## Sharing from your app: Web Share API ```js shareButton.addEventListener('click', async () => { const data = { title: document.title, text: 'Worth reading', url: location.href }; if (navigator.share && (!navigator.canShare || navigator.canShare(data))) { try { await navigator.share(data); } catch (e) { /* user cancelled */ } } else { await navigator.clipboard.writeText(location.href); // fallback } }); ``` Share files too: `navigator.share({ files: [file], title: 'Photo' })`, after checking `navigator.canShare({ files: [file] })`. It must be called from a user gesture. Supported in Safari (iOS and macOS), Chrome and Edge on Android, Windows and ChromeOS (and newer versions on macOS), Samsung Internet and Firefox for Android. ## Receiving shares: Web Share Target Add a `share_target` to your manifest, and your **installed** app appears in the system share sheet: ```json "share_target": { "action": "/share", "method": "GET", "params": { "title": "title", "text": "text", "url": "url" } } ``` The app opens `/share?title=...&text=...&url=...`. Note that some apps put the link in `text` rather than `url`, so check both. To receive **files**, use `POST` with `multipart/form-data` and handle the request in your service worker: ```json "share_target": { "action": "/share-image", "method": "POST", "enctype": "multipart/form-data", "params": { "files": [{ "name": "image", "accept": ["image/*"] }] } } ``` Share Target works in **Chromium on Android and ChromeOS** (and Edge on Windows). It is not supported on iOS. PWA.live has a share target: install it on Android and share any link to **PWA.live** to open the [PWA checker](/tools/pwa-checker/) with that URL. --- # Desktop integration: protocol handlers, launch handler, window controls overlay and more URL: https://www.pwa.live/learn/desktop-integration/ The finishing touches that make a desktop web app feel at home. Once installed on Windows, macOS, ChromeOS or Linux, Chromium-based browsers give PWAs several hooks into the desktop. ## Handle custom links: protocol_handlers ```json "protocol_handlers": [ { "protocol": "web+jam", "url": "/open?link=%s" }, { "protocol": "mailto", "url": "/compose?to=%s" } ] ``` Custom schemes must start with `web+`. A few safe-listed schemes such as `mailto`, `magnet` and `irc` are allowed too. Users approve the first launch. ## Control how launches open: launch_handler ```json "launch_handler": { "client_mode": ["navigate-existing", "auto"] } ``` - `navigate-new`: always a new window. - `navigate-existing`: reuse the most recent window and navigate it. - `focus-existing`: focus the existing window and pass the URL to `launchQueue` without navigating. `focus-existing` is ideal for single-window apps like music players and editors. ## Draw your own title bar: window controls overlay Opt in with `"display_override": ["window-controls-overlay"]`, then lay out your title bar using the `titlebar-area-*` environment variables. Code in [display modes](/learn/display-modes/). ## Other desktop touches - **Shortcuts** in the taskbar or Dock menu: [richer install UI](/learn/richer-install-ui/). - **Badges** on the icon: [Badging API](/learn/badging-api/). - **File handlers**: [files](/learn/file-handling/). - **Run on OS login**: users can turn this on from the app's settings in Chrome and Edge. - **Edge side panel**: `"edge_side_panel": { "preferred_width": 480 }` lets users pin your app in Edge's sidebar. - **Tabbed mode**: `"display_override": ["tabbed"]` (experimental) gives the app window its own tabs. All of these are progressive: browsers that do not support them simply ignore the fields. --- # Device and capability APIs for PWAs: what the web can do in 2026 URL: https://www.pwa.live/learn/device-apis/ Camera to Bluetooth: what PWAs can reach today. The gap between web and native apps has narrowed a lot, largely through the cross-company **capabilities project** (nicknamed "Fugu") in Chromium. Here is what is available, and where. ## Available in all modern browsers | API | What it does | | --- | --- | | Camera and microphone (`getUserMedia`) | Photos, video calls, scanning | | Geolocation | Location, with permission | | Device orientation and motion | Tilt, compass, step-style interactions | | Clipboard (async) | Copy and paste text, and images in most browsers | | Web Share | System share sheet ([guide](/learn/share-target-and-web-share/)) | | Screen Wake Lock | Keep the screen on (recipes, presentations) | | Payment Request | Apple Pay, Google Pay, cards | | WebAuthn and passkeys | Passwordless sign-in | | Web Audio, WebCodecs (most), WebGL | Media and graphics | | WebAssembly | Near-native speed for heavy code | | IndexedDB, OPFS | Large local storage ([guide](/learn/storage-quota-and-eviction/)) | | Barcode scanning | Camera plus a JS or Wasm decoder everywhere; the native Barcode Detection API is mainly in Chromium on Android, macOS and ChromeOS | ## Chromium only (Chrome, Edge, Samsung Internet, Opera) | API | What it does | Where | | --- | --- | --- | | Web Bluetooth | Talk to Bluetooth LE devices | Desktop and Android | | WebUSB | Talk to USB devices | Desktop and Android | | Web Serial | Serial ports (microcontrollers, printers) | Desktop | | WebHID | Game controllers, special keyboards | Desktop | | Web NFC | Read and write NFC tags | Android | | Contact Picker | Pick contacts from the address book | Android | | File System Access | Open and save real files | Desktop ([guide](/learn/file-handling/)) | | Background Sync, Periodic Sync, Background Fetch | Background work | Desktop and Android | | Local Font Access, Window Management, EyeDropper | Pro desktop apps | Desktop | | WebGPU | Modern GPU compute and graphics | Also in Safari 26 and Firefox (Windows) | ## How to use them safely 1. **Feature-detect** every time: `if ('bluetooth' in navigator) {...}`. 2. **Ask in context**, from a click, and explain why. 3. **Provide a fallback** for browsers without the API. 4. Check the [browser support table](/browser-support/) and test what your own browser supports with the [feature detector](/tools/feature-detector/). --- # Publishing a PWA in app stores: Google Play, Microsoft Store, App Store and more URL: https://www.pwa.live/learn/pwas-in-app-stores/ Your web app, listed where people look for apps. Being installable from the browser is great, but many people still look for apps in stores. You can list the same PWA in several of them. | Store | How | Effort | | --- | --- | --- | | **Google Play** | Wrap it in a [Trusted Web Activity](/learn/google-play-twa/) with Bubblewrap or PWABuilder | Low | | **Microsoft Store** | Package with [PWABuilder](/learn/microsoft-store/) | Low | | **Apple App Store** | A native wrapper (WKWebView via PWABuilder's iOS package, or Capacitor) that adds real native value | Medium to high: see [App Store](/learn/apple-app-store/) | | **Samsung Galaxy Store** | Upload the Android package made for Play | Low | | **Meta Quest Store** | PWABuilder's Meta Quest package | Low | ## Things to plan for - **One codebase, several listings**: all stores load your live site, so web updates reach every store at once. Only store metadata (and the wrapper, occasionally) needs updating. - **Payments**: stores have their own rules for digital goods. Google Play requires Google Play Billing for in-app digital purchases (with exceptions in some regions); the web Digital Goods API lets a TWA use it. - **Two installs of the same app**: a user who installs from the browser and from the store gets two icons. Decide which to promote on each platform. - **Quality bars**: stores reject thin wrappers. Your PWA should work offline, look native and do something useful. --- # Publish your PWA on Google Play with a Trusted Web Activity (Bubblewrap) URL: https://www.pwa.live/learn/google-play-twa/ A real Play Store app, powered by your live website. A **Trusted Web Activity (TWA)** is an Android app that opens your PWA full-screen in Chrome (or another supporting browser) with no browser UI. Because it uses the real browser, your service worker, storage, push and payments all work as they do on the web. ## What you need - A PWA that meets the install criteria and loads fast on mobile. - A Google Play developer account. - Node.js and a JDK (Bubblewrap can download one for you), or just a browser if you use PWABuilder. ## Option A: PWABuilder (no command line) 1. Go to PWABuilder, enter your URL, and choose **Package for stores > Android**. 2. Download the generated package: a signed `.aab` for Play, an `.apk` for testing, your signing key and an `assetlinks.json` file. 3. **Keep the signing key safe.** You need it for every update. ## Option B: Bubblewrap (command line) ```bash npm i -g @bubblewrap/cli bubblewrap init --manifest=https://example.com/manifest.webmanifest bubblewrap build ``` [Bubblewrap](/open-source/bubblewrap/) asks a few questions (package name, colours, signing key) and produces `app-release-bundle.aab` and a test APK. ## Prove you own the site: Digital Asset Links Chrome only hides the address bar if your site confirms the app is yours. Publish this file at `https://example.com/.well-known/assetlinks.json`: ```json [{ "relation": ["delegate_permission/common.handle_all_urls"], "target": { "namespace": "android_app", "package_name": "com.example.app", "sha256_cert_fingerprints": ["AA:BB:CC:..."] } }] ``` If you use **Play App Signing** (the default), add the **app signing key** fingerprint from the Play Console (Setup > App signing), not only your upload key. If the address bar still shows in your installed app, this file is the reason nine times out of ten. ## Publish Upload the `.aab` in the Play Console, fill in the store listing (screenshots, description, privacy policy, data safety form), and submit for review. ## Updating Web changes go live immediately for everyone: there is nothing to resubmit. Rebuild the TWA only to change its own settings (icon, name, splash, version, target SDK). Play requires apps to target a recent Android API level each year, so plan a small rebuild yearly. ## Good to know - Push notifications from your site work in the TWA (Android may ask for notification permission). - Digital goods sold inside a Play-distributed app must follow Play's billing policies; the Digital Goods API connects your web checkout to Play Billing. - Check that your app works well offline: thin, broken wrappers are rejected. --- # Publish your PWA in the Microsoft Store URL: https://www.pwa.live/learn/microsoft-store/ Windows users can find and install your PWA from the Store. The Microsoft Store accepts PWAs as first-class apps. Installed from the Store, your PWA runs in Edge's app runtime with its own window, Start menu entry and taskbar icon. ## Steps 1. **Create a Partner Center account** (individual or company) and reserve your app name. 2. From the app's **Product identity** page, copy the **Package ID**, **Publisher ID** and **Publisher display name**. 3. Open **PWABuilder**, enter your URL and choose **Package for stores > Windows**. Paste the three values. 4. Download the package: it contains an `.msixbundle` for the Store and a classic package for testing. 5. In Partner Center, create a submission, upload the package, add screenshots, description, age rating and privacy policy, and submit. ## Updating Like on Google Play, your web content updates instantly. You only need a new package when you change the app's identity, icons, or want to pick up new Windows integration features. ## Tips - Use [window controls overlay](/learn/display-modes/), [shortcuts](/learn/richer-install-ui/) and [badges](/learn/badging-api/) to feel at home on Windows. - Microsoft has used this route for its own apps: [Clipchamp](/directory/clipchamp/) and parts of [Microsoft 365](/directory/microsoft-365/) ship as PWAs. --- # Can you put a PWA in Apple's App Store? URL: https://www.pwa.live/learn/apple-app-store/ Yes, with a native wrapper and real native value. Apple does not accept a PWA on its own, but you can ship your web app inside a native iOS app. ## The options - **PWABuilder's iOS package** generates an Xcode project that loads your site in a `WKWebView`, with your icon, splash screen and some native bridges (push, permissions). - **[Capacitor](/open-source/capacitor/)** wraps your web app (bundled locally or loaded from your URL) and gives you native plugins for push, camera, haptics, files, in-app purchase and more. The same code still runs as your PWA on the web. You will need a Mac with Xcode and an Apple Developer Program membership. ## The review hurdle: guideline 4.2 App Review guideline **4.2 (Minimum Functionality)** rejects apps that are "simply a web site bundled as an app". To pass, the app should feel and act like an iOS app: - native navigation, no browser-like UI, no broken links to other sites; - real native value: push notifications, offline mode, widgets, Sign in with Apple, camera or file integration; - in-app purchases for digital goods (guideline 3.1), unless an exception applies. Content-heavy apps with good offline support and native touches are usually accepted. Thin wrappers around a marketing site usually are not. ## Is it worth it? If your users find you through the App Store, yes. If they find you through search, links and social, the Home Screen web app may serve them better, with no review delays and instant updates. Many teams start with the PWA and add a store wrapper later. --- # About PWA.live URL: https://www.pwa.live/about-us/ Independent, vendor-neutral and built as a PWA itself. **PWA.live** is an independent reference for Progressive Web Apps. We want it to be the page you keep open while building one: clear guides, current browser support, tools that do the boring parts, and an honest view of which open-source projects are worth your time. ## What we cover - **[Guides](/learn/)** from first principles to app stores, each with a review date. - **[Browser support](/browser-support/)** for thirty-two PWA features across seven browsers. - **[Free tools](/tools/)**: a PWA checker, manifest and service worker generators, icon tools, VAPID keys and more. - **[Open-source directory](/open-source/)**: more than fifty projects on GitHub, with when to use each one. - **[PWA directory](/directory/)**: well-known PWAs from A to Z and their published results. ## Independent and vendor-neutral We are not affiliated with Google, Apple, Microsoft, Mozilla, Samsung or any library we list. Nobody pays to be listed, we do not run ads, and we do not use affiliate links. When a browser lacks a feature, we say so; when a popular project stops being maintained, we say that too. ## This site is a PWA PWA.live practises what it explains. It has a [web app manifest](/manifest.webmanifest) with maskable icons, shortcuts, screenshots and a share target; a [service worker](/learn/service-workers-explained/) that precaches the app shell, serves pages network-first and shows an [offline page](/offline/); an install button that appears only when your browser can install it; and an update prompt when we publish changes. Install it, switch on flight mode, and keep reading. ## How we keep it accurate Every guide is reviewed against browser documentation, standards and release notes, and shows the date it was last checked. Read our [editorial policy](/editorial-policy/). If you spot something out of date, [tell us](/contact/) and we will fix it quickly. ## Made in India PWA.live is a small, independent project based in India, part of a family of websites listed at the bottom of every page. --- # PWA with Vite: vite-plugin-pwa for React, Vue, Svelte, Solid and more URL: https://www.pwa.live/learn/vite-pwa/ The zero-config route for Vite projects. [vite-plugin-pwa](/open-source/vite-plugin-pwa/) is the standard way to add PWA support to a Vite project. It writes the manifest, generates a [Workbox](/learn/workbox-and-serwist/) service worker with a precache list of your build files, and gives you hooks for update prompts. Sister packages cover [Nuxt](/learn/nuxt-pwa/), [SvelteKit](/learn/sveltekit-pwa/) and [Astro](/learn/astro-pwa/). ## Install ```bash npm i -D vite-plugin-pwa ``` ## Configure ```js // vite.config.js import { defineConfig } from 'vite'; import { VitePWA } from 'vite-plugin-pwa'; export default defineConfig({ plugins: [ VitePWA({ registerType: 'prompt', // or 'autoUpdate' includeAssets: ['favicon.svg', 'apple-touch-icon.png'], manifest: { id: '/', name: 'My App', short_name: 'MyApp', theme_color: '#5A0FC8', background_color: '#F4F6FB', display: 'standalone', icons: [ { src: 'pwa-192x192.png', sizes: '192x192', type: 'image/png' }, { src: 'pwa-512x512.png', sizes: '512x512', type: 'image/png' }, { src: 'maskable-512x512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' }, ], }, workbox: { globPatterns: ['**/*.{js,css,html,svg,png,woff2}'], navigateFallback: '/index.html', // for single-page apps }, devOptions: { enabled: false }, // set true to test the worker in dev }), ], }); ``` ## Update prompt With `registerType: 'prompt'`, show your own "new version" message: ```js import { registerSW } from 'virtual:pwa-register'; const updateSW = registerSW({ onNeedRefresh() { showBanner('New version available', () => updateSW(true)); }, onOfflineReady() { toast('Ready to work offline'); }, }); ``` Framework hooks exist too: `virtual:pwa-register/react` (`useRegisterSW`), `/vue`, `/svelte`, `/solid`, `/preact`. With `registerType: 'autoUpdate'`, the new version activates and reloads by itself: simpler, but it can interrupt people mid-task. ## generateSW or injectManifest? - **generateSW** (default): the plugin writes the whole worker from your config. Fine for most apps. - **injectManifest**: you write `src/sw.js`, and the plugin injects the precache list (`self.__WB_MANIFEST`). Use it for push, background sync or custom routing. ```js VitePWA({ strategies: 'injectManifest', srcDir: 'src', filename: 'sw.js' }) ``` ## Icons `@vite-pwa/assets-generator` makes every icon size, including maskable and Apple icons, from one SVG or PNG. Or use our in-browser [icon generator](/tools/icon-generator/). ## React apps from Create React App Create React App is deprecated. Move to Vite (or a framework) and use vite-plugin-pwa; the old `cra-template-pwa` service worker can be replaced by the configuration above. --- # PWA with Next.js: manifest, service worker and Serwist URL: https://www.pwa.live/learn/nextjs-pwa/ Manifest built in, service worker via Serwist. ## The manifest: built in With the App Router, add `app/manifest.ts` and Next.js serves it and links it for you: ```ts // app/manifest.ts import type { MetadataRoute } from 'next'; export default function manifest(): MetadataRoute.Manifest { return { id: '/', name: 'My App', short_name: 'MyApp', start_url: '/?source=pwa', display: 'standalone', background_color: '#F4F6FB', theme_color: '#5A0FC8', icons: [ { src: '/icon-192.png', sizes: '192x192', type: 'image/png' }, { src: '/icon-512.png', sizes: '512x512', type: 'image/png' }, { src: '/icon-maskable-512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' }, ], }; } ``` ## Option 1: a small hand-written worker If you only need installation and push (no offline caching), put a `sw.js` in `public/` and register it from a client component. The official Next.js documentation has a PWA guide that follows this route, including web push with server actions. ## Option 2: offline caching with Serwist [Serwist](/open-source/serwist/) is a maintained fork of Workbox with a first-party Next.js integration. It is the recommended replacement for the older `next-pwa` package. ```bash npm i @serwist/next && npm i -D serwist ``` ```js // next.config.mjs import withSerwistInit from '@serwist/next'; const withSerwist = withSerwistInit({ swSrc: 'app/sw.ts', swDest: 'public/sw.js' }); export default withSerwist({ /* your Next.js config */ }); ``` ```ts // app/sw.ts import { defaultCache } from '@serwist/next/worker'; import type { PrecacheEntry, SerwistGlobalConfig } from 'serwist'; import { Serwist } from 'serwist'; declare global { interface WorkerGlobalScope extends SerwistGlobalConfig { __SW_MANIFEST: (PrecacheEntry | string)[] | undefined; } } declare const self: ServiceWorkerGlobalScope; const serwist = new Serwist({ precacheEntries: self.__SW_MANIFEST, skipWaiting: false, clientsClaim: true, navigationPreload: true, runtimeCaching: defaultCache, fallbacks: { entries: [{ url: '/~offline', matcher: ({ request }) => request.destination === 'document' }] }, }); serwist.addEventListeners(); ``` Add `public/sw*` to `.gitignore`, create an `app/~offline/page.tsx`, and add `"webworker"` to `lib` in `tsconfig.json`. ## Things to watch - `@serwist/next` hooks into the webpack build; check Serwist's documentation for Turbopack support in your Next.js version. - Do not precache server-rendered pages that contain user data. - Server Components and streaming work fine behind a network-first navigation strategy. --- # PWA with Angular: @angular/pwa and the Angular service worker URL: https://www.pwa.live/learn/angular-pwa/ One command, then tune ngsw-config.json. Angular has its own service worker, configured with JSON rather than code. ## Add it ```bash ng add @angular/pwa ``` This adds `manifest.webmanifest`, default icons, `ngsw-config.json`, links the manifest in `index.html`, and registers the worker in your app config: ```ts provideServiceWorker('ngsw-worker.js', { enabled: !isDevMode(), registrationStrategy: 'registerWhenStable:30000', }) ``` The worker only runs in production builds (`ng build`), so test with a static server on `dist/`. ## ngsw-config.json ```json { "index": "/index.html", "assetGroups": [ { "name": "app", "installMode": "prefetch", "resources": { "files": ["/favicon.ico", "/index.html", "/*.css", "/*.js"] } }, { "name": "assets", "installMode": "lazy", "updateMode": "prefetch", "resources": { "files": ["/assets/**", "/*.(svg|png|webp|woff2)"] } } ], "dataGroups": [ { "name": "api-fresh", "urls": ["/api/feed/**"], "cacheConfig": { "strategy": "freshness", "maxSize": 50, "maxAge": "1d", "timeout": "4s" } }, { "name": "api-fast", "urls": ["/api/catalog/**"], "cacheConfig": { "strategy": "performance", "maxSize": 100, "maxAge": "7d" } } ] } ``` - **assetGroups**: your build files. `prefetch` downloads at install; `lazy` on first use. - **dataGroups**: API responses. `freshness` is network-first with a timeout; `performance` is cache-first. ## Updates with SwUpdate ```ts const updates = inject(SwUpdate); updates.versionUpdates .pipe(filter((e): e is VersionReadyEvent => e.type === 'VERSION_READY')) .subscribe(() => { if (confirm('A new version is available. Load it?')) document.location.reload(); }); ``` Call `updates.checkForUpdate()` on an interval or when the tab becomes visible. `SwPush` handles web push subscriptions and notification clicks. --- # PWA with Nuxt: @vite-pwa/nuxt URL: https://www.pwa.live/learn/nuxt-pwa/ The Nuxt module from the vite-plugin-pwa team. ```bash npx nuxi@latest module add @vite-pwa/nuxt ``` ```ts // nuxt.config.ts export default defineNuxtConfig({ modules: ['@vite-pwa/nuxt'], pwa: { registerType: 'prompt', manifest: { id: '/', name: 'My Nuxt App', short_name: 'Nuxt App', theme_color: '#5A0FC8', icons: [ { src: 'pwa-192x192.png', sizes: '192x192', type: 'image/png' }, { src: 'pwa-512x512.png', sizes: '512x512', type: 'image/png' }, { src: 'maskable-512x512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' }, ], }, workbox: { navigateFallback: '/' }, client: { installPrompt: true }, }, }); ``` Add `` to `app.vue`. The `$pwa` helper exposes `needRefresh`, `updateServiceWorker()`, `offlineReady` and, with `installPrompt`, `showInstallPrompt` and `install()`: ```vue ``` For server-rendered routes, `navigateFallback` only helps pages you prerender; use a runtime `NetworkFirst` rule for others. Options are the same as [vite-plugin-pwa](/learn/vite-pwa/). --- # PWA with SvelteKit: the built-in service worker URL: https://www.pwa.live/learn/sveltekit-pwa/ SvelteKit already knows how to build a service worker. SvelteKit bundles and registers `src/service-worker.js` (or `.ts`) automatically. The `$service-worker` module tells it what to cache: - `build`: your app's built JS and CSS files - `files`: everything in `static/` - `prerendered`: prerendered page paths - `version`: changes on every build ```js // src/service-worker.js import { build, files, prerendered, version } from '$service-worker'; const CACHE = `cache-${version}`; const ASSETS = [...build, ...files, ...prerendered]; self.addEventListener('install', (event) => { event.waitUntil(caches.open(CACHE).then((c) => c.addAll(ASSETS))); }); self.addEventListener('activate', (event) => { event.waitUntil(caches.keys().then((keys) => Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k))))); }); self.addEventListener('fetch', (event) => { if (event.request.method !== 'GET') return; event.respondWith((async () => { const url = new URL(event.request.url); const cache = await caches.open(CACHE); if (ASSETS.includes(url.pathname)) return (await cache.match(url.pathname)) || fetch(event.request); try { const res = await fetch(event.request); if (res.status === 200 && url.origin === location.origin) cache.put(event.request, res.clone()); return res; } catch { return (await cache.match(event.request)) || Response.error(); } })()); }); ``` Put `manifest.webmanifest` and icons in `static/` and link the manifest in `src/app.html`. Want generated precache manifests, update prompts and Workbox strategies instead? Use **@vite-pwa/sveltekit**, which plugs [vite-plugin-pwa](/learn/vite-pwa/) into SvelteKit. --- # PWA with Astro and other static site generators URL: https://www.pwa.live/learn/astro-pwa/ Static sites are the easiest PWAs of all. Static sites make excellent PWAs: every page is a file, so caching is simple and safe. ## Astro ```bash npx astro add @vite-pwa/astro ``` ```js // astro.config.mjs import { defineConfig } from 'astro/config'; import AstroPWA from '@vite-pwa/astro'; export default defineConfig({ integrations: [AstroPWA({ registerType: 'autoUpdate', manifest: { name: 'My Site', short_name: 'Site', theme_color: '#5A0FC8', icons: [/* ... */] }, workbox: { navigateFallback: '/404', globPatterns: ['**/*.{css,js,html,svg,png,ico,txt}'] }, })], }); ``` ## Eleventy, Hugo, Jekyll or any static output Run the **Workbox CLI** after your build to generate a worker with a precache list of the output folder: ```bash npx workbox-cli wizard # once: answers saved to workbox-config.js npx workbox-cli generateSW workbox-config.js ``` For large sites, do not precache every page; precache the shell and use a network-first runtime rule for HTML. ## Small sites For a blog or brochure site, a 40-line hand-written worker is enough. Generate one with our [service worker generator](/tools/service-worker-generator/), add a [manifest](/tools/manifest-generator/) and [icons](/tools/icon-generator/), and you are done. --- # Make a WordPress site a PWA URL: https://www.pwa.live/learn/wordpress-pwa/ Plugins, settings and the traps to avoid. ## Plugins - **PWA** (the feature plugin, developed in the open on GitHub as [pwa-wp](/open-source/pwa-wp/)): adds a web app manifest built from your Site Icon and settings, a service worker API for themes and plugins, and offline and 500 error templates. It aims to bring PWA support into WordPress core. - Several third-party plugins add a manifest, service worker and install prompts with a settings screen. Check when each was last updated and whether it is compatible with your WordPress version before installing. ## What to cache safely | Content | Strategy | | --- | --- | | Theme CSS and JS, uploads | Cache first (they have versions or unique names) | | Public posts and pages | Network first, with offline fallback | | `/wp-admin/`, `/wp-login.php`, REST API with auth | Never cache | | WooCommerce cart, checkout, my-account | Never cache | | Pages for logged-in users | Never cache, or the next visitor may see someone else's admin bar | ## Pitfalls - **Page caching plugins and CDNs** must not cache `/sw.js` for long, or updates never arrive. - **Comment forms and search** need the network: show a clear offline message. - **Multilingual plugins**: link the right manifest per language, and keep one `id`. - Test with a logged-in and a logged-out browser before launch. --- # Privacy policy URL: https://www.pwa.live/privacy-policy/ We collect as little as possible, and our tools run on your device. This policy explains what personal information PWA.live collects, why, and how we protect it. We collect as little as possible. ## Who we are PWA.live is an independent reference website about Progressive Web Apps, run from India. You can reach us through our [contact page](/contact/) or at support@pwa.live. ## What we collect **Newsletter.** If you subscribe, we store your email address, your chosen language, the page you signed up on, the date, and a one-way scrambled code made from your IP address that helps us stop abuse. We use this only to send our newsletter. **Contact form.** If you write to us, we store your name, email address, topic and message so that we can reply. **PWA checker.** When you use the [PWA checker](/tools/pwa-checker/), our server fetches the public web address you entered. We do not store the address or the results. To prevent abuse, we keep a short-lived count of checks per visitor (based on a scrambled IP address) for ten minutes. **Analytics.** If you allow analytics cookies, we use Google Analytics 4 to see which pages are read, how visitors find us, and whether the site is used in a browser tab or as an installed app. If you decline, analytics does not load. **Server logs.** Our hosting provider keeps standard web server logs for security and troubleshooting. ## What stays on your device PWA.live is a Progressive Web App. To work offline, our service worker stores copies of pages, styles, scripts and icons in your browser's Cache Storage. Pages you save for offline reading are stored the same way. Your preferences (language, light or dark colours, music, cookie consent) are kept in your browser's local storage. None of this is sent to us. You can delete it at any time by clearing this site's data in your browser settings. All our other tools (generators, icon tools, VAPID keys, the feature detector, the storage inspector and the notification tester) run entirely in your browser. Files you choose and keys you generate are never uploaded. The notification tester shows a notification on your device only; we do not create push subscriptions or store anything about you. ## What we do not do We do not sell or rent personal information. We do not run advertising or advertising trackers. We do not build profiles of visitors. We do not sell anything and do not collect payment details. ## Children We do not knowingly collect personal information from anyone under 18. If you believe a child has subscribed or written to us, contact us and we will delete the entry. ## Where data is stored and for how long Newsletter and contact entries are stored in private files on our web server, which are not publicly accessible. Newsletter subscriptions are kept until you unsubscribe; contact messages for up to two years. Analytics data is processed by Google under its own privacy terms and kept for 14 months. ## Your rights You can ask us to show you, correct or delete any personal information we hold about you, and you can unsubscribe from the newsletter at any time. Write to us and we will respond within 30 days. In India, these rights are provided under the Digital Personal Data Protection Act, 2023. ## Fonts Our pages load fonts from Google Fonts, which means your browser connects to Google's servers to download them. Our service worker then keeps a copy so they also work offline. ## Changes If we change this policy we will update the date at the bottom of this page. --- # Terms of use URL: https://www.pwa.live/terms-of-use/ Plain terms for using our guides, tools and code. By using PWA.live you agree to these terms. ## Our content The guides, text, illustrations and site design are ours. You may quote short passages with a link back to the page. Please do not republish whole guides. ## Code samples and generated code Code samples in our guides, and code generated by our tools (manifests, service workers, offline pages, install buttons, meta tags), are free to use in your own projects, including commercial ones, without attribution. They are provided as they are; test them before using them in production. ## Tools Our tools are free and provided as they are. We try hard to make them correct, but we cannot guarantee they are error-free or that every browser behaves as described. The [PWA checker](/tools/pwa-checker/) may only be used on websites you own or have permission to test, and must not be used to overload any server. We may limit or block automated use. ## Directories The [open-source](/open-source/) and [PWA](/directory/) directories describe third-party projects and products. Names and trademarks belong to their owners. Listing does not mean endorsement, and the owners do not endorse us. Results quoted in the PWA directory are as published by those companies; we have not verified them. ## Links We link to other websites. We are not responsible for their content or privacy practices. ## Changes and law We may update these terms; the date below shows the last change. These terms are governed by the laws of India. --- # Cookie and storage policy URL: https://www.pwa.live/cookie-policy/ Mostly local storage for your settings, and analytics only if you agree. ## Essential storage (always on) - **Local storage** remembers your language, light or dark colours, music setting and cookie choice. It never leaves your browser. - **Cache Storage and the service worker** keep copies of pages and files so PWA.live loads fast and works offline. Saved guides are stored here too. - **Form security**: our forms use a short-lived signed token, not a tracking cookie. ## Optional analytics cookies If you click **Accept**, we load Google Analytics 4, which sets cookies (such as `_ga`) to count visits and understand how the site is used, including whether it is used as an installed app. If you click **Reject**, they are never set. You can change your choice at any time with the **Cookie settings** link at the bottom of every page. ## How to clear everything In your browser's settings, find site data for www.pwa.live and clear it. This removes preferences, saved guides, cached pages and the service worker. If you installed PWA.live as an app, uninstalling it also removes its data on most platforms. --- # Disclaimer URL: https://www.pwa.live/disclaimer/ Independent, carefully checked, but browsers change fast. **Independent.** PWA.live is not affiliated with, sponsored or endorsed by Google, Apple, Microsoft, Mozilla, Samsung, Opera, the W3C or any company or open-source project mentioned on the site. Product names, logos and trademarks belong to their owners and are used only to identify them. We do not use other companies' logos; the icons on this site are our own. **Accuracy.** Browsers and platforms change every few weeks. We review our guides and [support table](/browser-support/) regularly, and each guide shows the date it was last reviewed, but something may still be out of date. Test on real devices and check official documentation before relying on any detail for an important decision. **Published results.** Figures in our [PWA directory](/directory/) are quoted from case studies published by the companies or their partners, mostly between 2016 and 2021. They describe what those companies reported at the time, compared with their own previous sites. They are not predictions for your project. **Tools and code.** Our tools and code samples are provided as they are, without warranty. You are responsible for testing what you deploy. **No professional advice.** Nothing on this site is legal, financial or security advice for your specific situation. --- # Accessibility statement URL: https://www.pwa.live/accessibility/ Built to be usable by everyone. Tell us if something is not. We want PWA.live to work for everyone, on any device, with any assistive technology. ## What we do - Aim to meet the **Web Content Accessibility Guidelines (WCAG) 2.2, level AA**. - Use real headings, landmarks, labels and lists, so screen readers can navigate. - Make everything usable with a **keyboard**, with visible focus outlines and a skip link. - Keep text **contrast** high in both light and dark colour schemes. - Respect **reduced motion**: if your system asks for less motion, animations and effects are switched off. - Never start sound on its own. Background music is off until you turn it on. - Announce install, update and offline messages politely to screen readers. - Offer the site in English, Spanish, Portuguese and Hindi. - Give every tool text output (JSON, code, lists), not only visual previews. ## Known limitations Some visual previews in our tools (the maskable icon shapes and the theme colour mock-ups) are images by nature; their results are also given as text. Code samples are in English. ## Tell us If anything on PWA.live is hard to use, [contact us](/contact/) and tell us the page and what happened. We aim to reply within five working days. --- # Editorial policy: how we research and review URL: https://www.pwa.live/editorial-policy/ How we keep guides and support data accurate. ## Sources We write from primary sources wherever possible: specifications (W3C and WHATWG), browser release notes and engineering blogs (Chrome, WebKit, Mozilla, Microsoft Edge), documentation on MDN and web.dev, project repositories on GitHub, and our own tests on real devices. ## Reviews - Each guide shows the **date it was last reviewed**. We review guides when browsers ship changes that affect them, and at least twice a year. - The **[browser support table](/browser-support/)** is checked by hand against release notes and standards trackers, and marks partial support with a note. - **Open-source entries** are checked for maintenance status; we say clearly when a project is no longer actively maintained. - **Directory entries** quote results only from published case studies, with the source named. ## Independence Nobody pays to be listed or reviewed. We do not accept sponsored content, run ads or use affiliate links. We are not affiliated with any browser vendor. ## Our own tools We describe exactly what each tool does and where it runs. Only the [PWA checker](/tools/pwa-checker/) uses our server. ## Translations Guides are written in English. Translated pages are produced with AI translation and checked for obvious errors; if the English and a translation disagree, the English page is the reference. ## Corrections If you find an error, [tell us](/contact/), ideally with a link to a source. We correct mistakes promptly and update the review date. --- # PWA performance: app shell, Core Web Vitals and fast repeat visits URL: https://www.pwa.live/learn/pwa-performance/ Most PWA success stories are really speed stories. Read the [business case](/learn/when-to-build-a-pwa/) closely and you notice that most of the gains came from **speed**: Pinterest cut its JavaScript bundle and time to interactive; Tinder and Uber built tiny shells that load on 2G. A service worker makes repeat visits fast, but the first visit is still up to you. ## Targets (Core Web Vitals) | Metric | Good | What it measures | | --- | --- | --- | | Largest Contentful Paint (LCP) | 2.5 s or less | When the main content appears | | Interaction to Next Paint (INP) | 200 ms or less | How quickly the page responds to taps and keys | | Cumulative Layout Shift (CLS) | 0.1 or less | How much the layout jumps | Measure on a **mid-range Android phone on 4G**, not on your laptop. ## The app shell Split the UI into a minimal **shell** (header, navigation, layout, styles) and **content**. Precache the shell in the service worker so it appears instantly on repeat visits, then fill in content from cache or network. For content sites, server-rendered HTML with a network-first strategy gives the same effect with less complexity. ## Ship less JavaScript - Server-render or prerender pages; hydrate only interactive islands. - Split code by route; load heavy features on demand. - Audit dependencies: date libraries, icon packs and UI kits are common culprits. - Avoid shipping polyfills to modern browsers. ## Images and fonts - Use AVIF or WebP with `srcset` and `sizes`; set `width` and `height` to avoid layout shift. - `loading="lazy"` below the fold; `fetchpriority="high"` on the hero image. - Two font families at most, `font-display: swap`, and subset where you can. ## Use the service worker well - Precache only the shell; cache the rest at runtime ([strategies](/learn/caching-strategies/)). - Enable [navigation preload](/learn/service-worker-performance/). - Do not intercept requests you do not need to. ## Prerender likely next pages The **Speculation Rules API** (Chromium) can prefetch or prerender the next page before the user clicks: ```html ``` ## Measure in the field Use the [web-vitals](/open-source/web-vitals/) library to send real-user metrics to your analytics, split by `display-mode` so you can compare installed and browser users. --- # SEO for Progressive Web Apps URL: https://www.pwa.live/learn/pwa-seo/ A PWA is still a website: make sure search engines see it. Search engines index **websites**, and a PWA is one. Do the web basics well and the PWA parts will not get in the way. ## Key facts - **Googlebot does not use your service worker.** It fetches pages fresh each time, so caching never hides content from it, and it also means your pages must work without the worker. - **Every view needs its own URL** that returns real content when loaded directly. Hash-based routes (`/#/products`) are a problem; use the History API. - **Render on the server** (SSR or static generation) where you can. Google renders JavaScript, but later and with limits; other search engines and AI crawlers often do not. ## Checklist - Unique ``, meta description and `<h1>` per page. - Canonical URLs, and `hreflang` for language versions. - An XML sitemap listing every public URL, referenced in `robots.txt`. - Structured data (JSON-LD) for your content type: `Article`, `Product`, `SoftwareApplication`, `FAQPage`, `BreadcrumbList`. - Do not block `/manifest.webmanifest`, your JS or CSS in `robots.txt`. - The `start_url` query parameter (`?source=pwa`) should carry a canonical link to the clean URL. - Good [Core Web Vitals](/learn/pwa-performance/): they are a ranking signal. ## Do not cloak Never show crawlers different content from users, and do not put essential content behind "install the app" walls. Interstitials that block content on mobile can hurt rankings. ## AI answer engines AI assistants and answer engines increasingly cite websites. Help them understand yours: - Publish an `llms.txt` file summarising your site with links to key pages (PWA.live has one at [/llms.txt](/llms.txt), and the full text at [/llms-full.txt](/llms-full.txt)). - Offer clean, factual pages with clear headings, tables and dates. - Publish machine-readable data where it helps (PWA.live publishes its [tool and library directory as JSON](/data/tools.json)). - Decide which AI crawlers you allow in `robots.txt`. --- # PWA security: HTTPS, service worker safety, CSP and caching private data URL: https://www.pwa.live/learn/pwa-security/ A service worker is powerful. Keep it on your side. A service worker sits between your users and your server and lives on after the page closes. That makes it a high-value target. Follow these rules. ## Transport - **HTTPS everywhere**, with HSTS. Service workers will not register on plain HTTP (except `localhost`). - No mixed content. ## The service worker script - Serve `sw.js` **from your own origin**, from the narrowest path that works. Do not let user uploads end up in a folder where they could be registered as a worker. - Never import worker scripts from third-party CDNs you do not control. - Serve it with `Cache-Control: no-cache` so a fix reaches everyone quickly. - Keep a **kill switch** ready: a version of `sw.js` that unregisters itself ([lifecycle](/learn/service-worker-lifecycle/)). ## Caching private data - **Never cache authenticated or personalised responses** under shared keys. Only cache what any visitor could see, or include the user in the cache name and clear it on sign-out. - Do not cache responses with `Cache-Control: private` or `no-store` unless you know why. - On **sign-out**, clear user caches, IndexedDB and push subscriptions: ```js async function signOut() { for (const k of await caches.keys()) if (k.startsWith('user-')) await caches.delete(k); indexedDB.deleteDatabase('user-data'); const reg = await navigator.serviceWorker.ready; const sub = await reg.pushManager.getSubscription(); if (sub) { await fetch('/api/push/unsubscribe', { method: 'POST', body: JSON.stringify(sub) }); await sub.unsubscribe(); } } ``` The `Clear-Site-Data` response header is a server-side alternative. ## Content Security Policy A CSP limits where scripts can come from, which protects the page and the worker it registers: ``` Content-Security-Policy: default-src 'self'; script-src 'self'; worker-src 'self'; connect-src 'self' https://api.example.com; img-src 'self' data:; manifest-src 'self' ``` ## Push - Keep the VAPID **private key** on the server only. - Tie subscriptions to accounts server-side; delete them on sign-out and on 404/410 responses. - Do not put sensitive data in notification text; it shows on lock screens. ## Third-party scripts Every analytics or chat script runs with your page's privileges and can read your caches. Load as few as possible, and only after consent where required. --- # Testing PWAs in 2026: after Lighthouse removed its PWA category URL: https://www.pwa.live/learn/testing-pwas/ What to test, and with which tools, now that the PWA score is gone. ## Lighthouse changed **Lighthouse 12 (2024) removed the PWA category.** Lighthouse 11 had already dropped the service worker and offline checks. The reasons: install criteria had changed across browsers, and a single score encouraged box-ticking. Lighthouse is still excellent for performance, accessibility, best practices and SEO. ## What to use instead - **Chrome and Edge DevTools > Application > Manifest**: shows installability errors and warnings, the computed `id`, and icon problems. - **PWABuilder's report card**: checks manifest fields, service worker and security, and offers fixes. - **The PWA.live [PWA checker](/tools/pwa-checker/)**: fetches your page and manifest from our server and lists what passes and what to improve. - **Our [manifest validator](/tools/manifest-validator/)** for quick JSON checks. ## Manual test plan 1. Install from the browser on desktop and Android; open the app; check the icon, name, splash and theme colour. 2. Add to the Home Screen on a real iPhone; check the icon and safe areas. 3. Go **offline** (DevTools, or flight mode) and reload several pages, including one you never visited. 4. Deploy a change; confirm the **update prompt** appears and reloading shows the new version. 5. Sign out; confirm private data is gone from caches and IndexedDB. 6. Test push permission and a real notification on each platform. 7. Repeat on a slow connection (DevTools "Slow 4G"). ## Automated tests with Playwright [Playwright](/open-source/playwright/) can wait for the service worker, go offline and check pages still load: ```js import { test, expect } from '@playwright/test'; test('works offline after first visit', async ({ page, context }) => { await page.goto('/'); await page.evaluate(async () => { await navigator.serviceWorker.ready; }); await page.reload(); // now controlled by the worker await context.setOffline(true); await page.goto('/learn/'); await expect(page.locator('h1')).toBeVisible(); }); test('manifest is valid', async ({ request }) => { const m = await (await request.get('/manifest.webmanifest')).json(); expect(m.icons.some((i) => i.sizes === '512x512')).toBeTruthy(); }); ``` [Mock Service Worker](/open-source/msw/) is a different tool with a similar name: it uses a service worker to mock APIs in tests, not to test your PWA. ## Lighthouse CI Keep [Lighthouse CI](/open-source/lighthouse-ci/) in your pipeline for performance and accessibility budgets, and add your own checks for the manifest and offline behaviour. --- # Analytics for PWAs: installs, launches, offline use and updates URL: https://www.pwa.live/learn/pwa-analytics/ Know how many people use your app as an app. Standard web analytics treat everything as a browser visit. Add a few events and dimensions to see how your PWA is really used. ## What to track | Signal | How | | --- | --- | | Display mode | `matchMedia('(display-mode: standalone)')` as a user property or page dimension | | Launch from icon | `start_url` with `?source=pwa`; shortcuts with `?source=shortcut` | | Install prompt outcome | `beforeinstallprompt` > `userChoice.outcome` | | Installs | `appinstalled` (Chromium); first standalone launch (iOS) | | Offline page views | Count in the page, queue, send when online | | Update accepted | When the user clicks your "reload" prompt | | Push opt-in | Permission result and subscription success | ## GA4 example ```js const mode = matchMedia('(display-mode: standalone)').matches || navigator.standalone ? 'standalone' : 'browser'; gtag('set', 'user_properties', { display_mode: mode }); addEventListener('appinstalled', () => gtag('event', 'app_installed')); deferredPrompt?.userChoice.then(({ outcome }) => gtag('event', 'install_prompt', { outcome })); ``` Register `display_mode` as a custom dimension in GA4 to compare engagement and conversion between installed and browser users. ## Offline events Analytics requests fail offline. Either queue events in IndexedDB and send them later, or use Workbox's Google Analytics module, which replays failed GA requests when the connection returns. ## Consent Install and display-mode events go through your analytics like everything else, so the same consent rules apply. PWA.live loads Google Analytics only in production and only after you accept cookies; its install events use the same gate. --- # PWA glossary: 48 terms explained in plain English URL: https://www.pwa.live/learn/pwa-glossary/ Every PWA term on one page. **App shell.** The minimal HTML, CSS and JavaScript needed to draw your interface, cached so the app opens instantly. [Performance](/learn/pwa-performance/) **appinstalled.** An event fired in Chromium when the PWA has been installed. **apple-touch-icon.** The 180 x 180 icon iOS uses on the Home Screen. [Icons](/learn/icons-and-maskable-icons/) **Background Fetch.** An API that hands large downloads to the browser so they continue after the app closes. Chromium only. [Guide](/learn/background-fetch/) **Background Sync.** An API that retries work when the connection returns. Chromium only. [Guide](/learn/background-sync/) **Badging API.** Shows a number or dot on the installed app's icon. [Guide](/learn/badging-api/) **beforeinstallprompt.** A Chromium event that lets you show the install dialog from your own button. [Guide](/learn/custom-install-button/) **Bubblewrap.** A command-line tool from Google that packages a PWA as an Android app (TWA). [Bubblewrap](/open-source/bubblewrap/) **Cache API.** Storage for HTTP request and response pairs, used by service workers. **Cache first.** A caching strategy: answer from cache, go to the network only on a miss. [Strategies](/learn/caching-strategies/) **Capabilities project (Fugu).** A cross-company effort in Chromium to add device APIs to the web. [Device APIs](/learn/device-apis/) **clients.claim().** Lets a newly activated service worker control open pages immediately. **Display mode.** How an installed app is shown: fullscreen, standalone, minimal-ui or browser. [Guide](/learn/display-modes/) **display_override.** A manifest list of newer display modes to try first. **Digital Asset Links.** The `assetlinks.json` file that proves you own both a website and an Android app. [TWA](/learn/google-play-twa/) **File handlers.** A manifest field that lets a desktop PWA open files from the operating system. [Files](/learn/file-handling/) **Home Screen web app.** Apple's name for a PWA added to the Home Screen on iPhone or iPad. **IndexedDB.** The browser's built-in database for structured data. [Offline data](/learn/offline-first-data/) **Install criteria.** What a browser requires before it offers to install a site. [Guide](/learn/install-criteria/) **Launch handler.** A manifest field that controls whether a launch reuses a window. [Desktop integration](/learn/desktop-integration/) **Lighthouse.** Google's audit tool. Its PWA category was removed in version 12. [Testing](/learn/testing-pwas/) **Manifest id.** The permanent identity of an app. [Guide](/learn/manifest-id-scope-start-url/) **Maskable icon.** A full-bleed icon with the logo inside a central safe zone, so it can be cropped to any shape. [Guide](/learn/icons-and-maskable-icons/) **Navigation preload.** Starts a page's network request while the service worker boots. [Performance](/learn/service-worker-performance/) **Network first.** A strategy: try the network, fall back to the cache. [Strategies](/learn/caching-strategies/) **Offline page.** A page the service worker shows when a page is not cached and the network is down. [Guide](/learn/offline-fallback-page/) **OPFS.** The Origin Private File System: fast, private file storage for each site. **Origin.** Scheme, host and port together, such as `https://www.pwa.live`. Storage and permissions are per origin. **Periodic Background Sync.** Lets installed apps refresh content at intervals. Chromium only. **Precache.** Files stored by the service worker during installation. **Progressive enhancement.** Building a baseline that works everywhere and adding features where supported. The "progressive" in PWA. **Protocol handler.** Lets a PWA open links with a custom scheme such as `web+music:`. **Push API.** Lets a server send messages to a service worker. [Guide](/learn/web-push-notifications/) **PWABuilder.** A Microsoft-backed open-source tool for checking and packaging PWAs for stores. [PWABuilder](/open-source/pwabuilder/) **Scope.** The set of URLs that belong to an app or a service worker. **Screenshots.** Manifest images for the richer install dialog. [Guide](/learn/richer-install-ui/) **Service worker.** A background script that sits between your pages and the network. [Guide](/learn/service-workers-explained/) **Share target.** A manifest field that makes an installed app a destination in the share sheet. [Guide](/learn/share-target-and-web-share/) **Shortcuts.** Quick actions on the app icon's menu. **skipWaiting().** Activates a new service worker without waiting for old pages to close. [Lifecycle](/learn/service-worker-lifecycle/) **Stale-while-revalidate.** A strategy: answer from cache and refresh it in the background. **Standalone.** The most common display mode: own window, no browser UI. **Trusted Web Activity (TWA).** An Android app that shows your PWA full-screen in the browser, used to publish on Google Play. [Guide](/learn/google-play-twa/) **VAPID.** Keys that identify your server to push services. [Generator](/tools/vapid-keys/) **Web app manifest.** The JSON file describing your app. [Guide](/learn/web-app-manifest/) **WebAPK.** The Android package Chrome generates when you install a PWA. [Android](/learn/pwa-on-android/) **Window controls overlay.** A desktop display mode where your content fills the title bar area. **Workbox.** Google's set of service worker libraries. [Guide](/learn/workbox-and-serwist/)