A PWA (progressive web app) is a website that browsers can install and run like a native app. It uses a web app manifest for its name and icon, and a service worker to cache files so it can load offline and receive push notifications.

How PWA Works

PWAs use service workers to cache assets and enable offline access, a web app manifest for install prompts, and HTTPS for security. Twitter Lite, Starbucks, and Pinterest all launched successful PWAs that matched or exceeded their native app metrics.

The key advantage: one codebase reaches all platforms. Users can install a PWA from the browser without going through app stores, and updates deploy instantly like websites.

Key Concepts

  • Service Worker — A background script that caches resources and enables offline functionality
  • Web App Manifest — A JSON file that defines the app's name, icons, and theme for home screen installation
  • Installable — Users can add a PWA to their home screen and launch it like a native app

Frequently Asked Questions

What is a PWA used for?

PWAs are used to give a web app an installable, app-like experience from one codebase, without going through an app store. Android and desktop Chromium browsers support installation fully; iOS supports home-screen web apps and, since iOS 16.4, web push for them.

Can a PWA replace a native app?

For many use cases, yes. PWAs can work offline, send push notifications, and access device APIs. But they can't access all native features (Bluetooth, NFC on iOS) and aren't listed in app stores by default.

Do PWAs work on iOS?

Yes, but with limitations. Safari supports service workers and home screen installation, but push notifications on iOS only arrived in 2023 and some APIs remain restricted.