What is a PWA (progressive web app)?

A progressive web app (PWA) is a website built with standard web technology that browsers can install like an app, with its own icon and window, offline support through a service worker, and push notifications.

Also called progressive web app, progressive web application, PWA app, installable web appUpdated

A PWA is a normal website with a few extra pieces that let it behave like an installed app. The user opens it from a link, uses it straight away, and can then add it to the home screen. From there it launches in its own window without browser bars, can load when the network is poor, and can send notifications. There is one codebase, and there's no app store in between.

PWA stands for progressive web app. "Progressive" means the features are layered on: the site still works in a browser that ignores them.

What a site needs to be a PWA

  1. HTTPS. Service workers only run on secure origins.
  2. A web app manifest. A JSON file with the app's name, icons, start URL and display mode.
  3. A service worker. A script that runs between the page and the network, caching files and handling offline requests and push messages.

Chrome shows its own install prompt when the manifest has a name or short_name, 192 px and 512 px icons, a start_url and a display value such as standalone, and the user has interacted with the page. Other browsers use similar rules. On iPhone and iPad, users install through Share → Add to Home Screen, and since iOS and iPadOS 16.4 installed web apps can receive web push notifications.

Example: manifest and service worker

The manifest, linked from every page with <link rel="manifest" href="/manifest.webmanifest">:

{
  "name": "Kirana Fresh",
  "short_name": "Kirana",
  "start_url": "/?source=pwa",
  "display": "standalone",
  "theme_color": "#0f766e",
  "icons": [
    { "src": "/icons/192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/icons/512.png", "sizes": "512x512", "type": "image/png" }
  ]
}

A small service worker that serves the app shell from cache and falls back to an offline page:

self.addEventListener("install", (e) =>
  e.waitUntil(caches.open("shell-v3").then((c) => c.addAll(["/", "/offline", "/app.css", "/app.js"])))
);
self.addEventListener("fetch", (e) => {
  if (e.request.destination === "document") {
    e.respondWith(fetch(e.request).catch(() => caches.match("/offline")));
  }
});

On a weak 4G connection, a returning shopper sees the catalogue shell at once and the products load as the network allows. Prices and stock should still come from the network, never from an old cache.

In React projects, teams rarely write this by hand. Build plugins such as vite-plugin-pwa or Workbox generate the service worker and precache list at build time.

PWA vs native app

PWA Native app
First use Instant from a link or search result Install from a store first
Discoverable in Google Yes No (store search instead)
Device features Most common ones; fewer on iOS Full access
Updates On next visit Store release
Codebase Same as the website Separate, or cross-platform

For many Indian D2C brands, a fast PWA is the right first step, and a native app follows when repeat purchases justify it. Our PWA vs native app guide for e-commerce in India works through that decision.

Common mistakes

  • Treating "installable" as the goal. A slow PWA is still slow, so fix Core Web Vitals first.
  • Caching API responses forever, which shows stale prices and stock.
  • Forgetting to version caches, so users keep old JavaScript after a release.

We build PWAs and fast storefronts for e-commerce brands through our product engineering team.

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call