The app that never asked you to visit a store
Open your phone and count the apps you actually use in a week. For most people it is a small number — a messenger, a map, a bank, a couple of social feeds. The rest sit there, installed once and forgotten, taking up storage and occasionally asking for an update. Now think about the last time you needed something from a business you rarely deal with: a train timetable, a restaurant menu, a shop's opening hours. Did you install their app? Almost certainly not. You opened their website, waited for it to load, and hoped the connection held.
That gap — between a website anyone can open and an app that feels fast and works offline — is where progressive web apps live. A PWA is a website with a few extra pieces bolted on: it can work without a connection, it can be installed on a home screen, and it can send notifications. It is still a website. It still has a URL, it still shows up in search results, and it still opens in a browser tab if that is how you reach it.
This guide explains what a PWA is, how the pieces fit together, what the big companies actually measured when they built one, and how to decide whether your own site should become one — including the cases where a native app is still the right answer.
What a PWA actually is
Strip away the terminology and a PWA is a regular website that meets three technical conditions: it is served over HTTPS, it has a web app manifest, and it registers a service worker. Those three things are what let a browser treat the site as installable, and they are what make the offline behaviour and push notifications possible.
The manifest is a small JSON file that describes the site as an app: its name, the icons to show on a home screen, the page to open when launched, and how it should look — full-screen, without browser chrome, like a native app. The service worker is a JavaScript file that runs in the background, separate from the page, and sits between the site and the network. It can intercept requests, serve files from a local cache, and receive push messages even when the page is not open. HTTPS is required for both, because a script that can intercept your network traffic must come from a source the browser trusts.
None of this changes what the site is. A PWA is not a second version of your website, and it is not a wrapper around it. It is the same site, with the same URL, enhanced. A visitor on an old browser that does not support service workers simply gets the ordinary website. That is what "progressive" means in practice: the experience improves with the browser, and it never collapses without it.
The three pieces that make it work
HTTPS, and why there is no shortcut
Every page of a PWA must be served over HTTPS. Localhost is exempt while you are developing, but in production there is no exception. The reason is the service worker: a script that can intercept and rewrite network requests is a powerful thing to hand to a website, and the browser will only hand it to a site whose identity is verified by a certificate. This is not a hoop to jump through. It is the security model, and it is the same reason you should already be serving your site over HTTPS anyway.
The manifest: your site's identity card
The web app manifest is a JSON file linked from every page. At minimum it carries the site's name, a short name for the home screen, a start URL, a display mode, and icons — the browser's install criteria require icons at 192 and 512 pixels. The display mode is what makes the installed version feel like an app: set it to standalone and the browser chrome disappears, so the site opens full-screen with its own icon and its own place in the app switcher.
The service worker: a proxy that lives in the browser
The service worker is the piece that does the real work, and it is also the piece people misunderstand most. It is a JavaScript file that the browser installs and runs in the background, in its own thread, separate from any page. Once installed, it can intercept every network request your site makes. That is what makes offline work possible: when the network is gone, the service worker can answer from a cache it filled earlier.
A service worker has a lifecycle, and it is worth understanding because most service worker bugs are lifecycle bugs. It installs, then it activates, and only then does it control pages. A new version does not take over immediately — the old one keeps serving pages until they are closed, unless you tell it to take over at once. That is a sensible default, but it surprises people who deploy a fix and then wonder why their own phone still shows the old version.
How offline really works
"Works offline" is the phrase everyone quotes about PWAs, and it is also the phrase most often oversold. A PWA can work offline, but only for the content its service worker has explicitly cached. Nothing is cached by magic. If the service worker never stored a page, the browser cannot show it without a network. Every offline story you have heard is really a caching story, and the quality of the offline experience is the quality of the caching decisions behind it.
There are a handful of caching strategies, and most real PWAs use more than one, matched to the kind of content involved.
Cache-first is the simplest: when the site asks for a file, the service worker looks in the cache first and only goes to the network if the file is not there. This is right for things that rarely change — your CSS, JavaScript bundles, logo, and fonts — and it makes repeat visits fast, because the files are already on the device.
Network-first is the opposite: try the network, and fall back to the cache only when the network fails. This is right for content that changes often and where showing something stale would be worse than showing nothing — a news homepage, a stock price, a live timetable.
Stale-while-revalidate splits the difference: serve from the cache immediately, and fetch a fresh copy in the background for next time. The visitor always gets a fast answer, and the cache quietly stays current. This works well for content that changes but where a slightly old version is acceptable — a product listing, a blog archive, a help centre.
The Starbucks PWA is the classic illustration of matching strategy to content. Customers can browse the menu, customise an order, and add items to their cart even when they are offline, because the menu data and the static pages are cached. Submitting the order still needs the network, because an order is a transaction, not a file. The split is the lesson: the browsing and customising steps were made resilient, and the final step stays online.
Installable, but not in the way you expect
Installation is the feature that makes a PWA feel like an app, and it is also the one with the most variation between platforms. On Android, Chrome can show an install prompt when the site passes the installability checks: HTTPS, a valid manifest with a name, icons and start URL, and a registered service worker with a fetch handler. The prompt appears after the visitor has engaged with the site — typically one interaction and around thirty seconds of use — and if they accept, the site appears on their home screen like any other app.
On iPhone, the story is different, and it has been for years. Safari does not show an automatic install prompt at all. The visitor has to tap Share and then "Add to Home Screen" themselves. Apple improved this flow in iOS 17, surfacing the option more prominently when a site has a valid manifest, but the step is still manual, and many iPhone users will never find it unless you tell them. If a large share of your audience is on iOS, you need an in-page hint — a small banner or a line in your help pages explaining how to add the site to the home screen. It is not elegant, but it works.
Push notifications without an app store
Push notifications are the feature most people associate with native apps, and they are the reason many teams build an app at all. A PWA can send them, through the same service worker that handles offline caching. The flow is straightforward: the visitor grants permission, the browser creates a push subscription, your server sends a message to the browser vendor's push service, and the service worker wakes up and shows the notification — even when the site is not open.
On Android this has worked for years. On iPhone it arrived much later: iOS 16.4, shipped in March 2023, added Web Push support for home screen web apps. The constraint matters: on iOS, push only works after the user has installed the PWA to the home screen. A notification permission granted inside a regular Safari tab does nothing. So the order of operations on iPhone is install first, then ask for notification permission — at a moment when the visitor understands what they are signing up for, not on their first visit.
The numbers companies published
The most-quoted PWA figures come from a small set of companies that published their own results, mostly in 2017 and 2018, when the technology was new and Google was documenting the early case studies. They are company-reported, not independent studies, and they compare the PWA with the same company's previous mobile site, not with a native app. Both caveats matter. But the figures are still useful, because they show the order of magnitude that is possible when a slow mobile site is rebuilt with speed as the priority.
Twitter Lite, the PWA version of Twitter, became the default mobile web experience for all users globally in April 2017. After launch, Twitter reported 65 percent more pages per session, 75 percent more tweets sent, and a 20 percent drop in bounce rate. The PWA was about 600 KB over the network, against 23.5 MB to download the native Android app.
Pinterest rebuilt its mobile web experience in about three months, after finding that the old version converted only around 1 percent of unauthenticated mobile visitors into sign-ups, logins, or app installs. The team cut its core JavaScript bundle from 650 KB to 150 KB and added service workers for network resilience. Compared with the old mobile site, time spent rose 40 percent, user-generated ad revenue rose 44 percent, and core engagements rose 60 percent. Pinterest's own one-year retrospective added a caution: performance is hard to maintain, because a single heavy import can bloat a bundle. The gains came from a rewrite focused on speed, not from the PWA label itself.
Starbucks added ordering to its website as a PWA aimed at customers in both established and emerging markets. The PWA doubled daily active users, and web orders reached near-parity with orders from the native mobile app. The size difference is the figure people remember: the PWA is 233 KB against 148 MB for the iOS app, 99.84 percent smaller.
PWA, native app, or a plain responsive site?
The honest answer to "should we build a PWA?" depends on what you are building and who it is for. The three options solve different problems, and the table below is a fair summary of the trade-offs.
| Responsive website | Progressive web app | Native app | |
|---|---|---|---|
| Distribution | A link, search, any browser | A link, plus home screen install | App store only |
| Works offline | No | Yes, for cached content | Yes |
| Push notifications | No | Yes, with platform limits | Yes, full control |
| Access to device hardware | Limited | Growing, but gaps on iOS | Full |
| Development cost | Lowest | Low to moderate | Highest, often two codebases |
| Discoverable in search | Yes | Yes | No |
| App store presence | No | Only via a wrapper | Yes |
A plain responsive site is enough when visitors come once, from a search result, and leave. A blog, a landing page, a restaurant menu — these do not need offline support or an install prompt, and adding a service worker to them is complexity without a payoff.
A PWA earns its keep when people come back. A shop with repeat customers, a news site with daily readers, a tool people use on the move, a service where the connection is unreliable — a train timetable, a field-work app, an ordering system for a cafΓ© chain. The common thread is returning visitors who benefit from speed, offline access, and a home screen icon, but who would never install a native app for the privilege.
A native app still wins when you need deep access to the device: Bluetooth peripherals, NFC payments, advanced camera features, background processing that the web cannot do, or the kind of performance a game demands. It also wins when your business lives inside an app store — when discovery, ratings, and in-app purchases through the store are part of the model. And it wins when your audience expects an app and would distrust a website for the job, which is still true for banking and for some health applications, fairly or not.
Building one, step by step
If you decide to build a PWA, the work is smaller than most people expect, and the order matters. Start with the foundation — a fast, reliable ordinary website — then add the app-like behaviour, then measure.
First, serve everything over HTTPS and add the manifest. This is a day's work for most sites: a certificate, a JSON file, the icons in the right sizes, and the link tag on every page. Check the result in the browser's Application panel, which will tell you plainly what is missing.
Second, add the service worker. You do not need to write it from scratch. Workbox, Google's library for service workers, provides ready-made caching strategies and handles the lifecycle details that trip people up, such as precaching the app shell and cleaning up old caches. If you use a build tool, the Vite PWA plugin generates the service worker using Workbox under the hood. Next.js has a similar plugin, and a newer option is Serwist, a TypeScript-first fork of Workbox. Whichever you choose, the principle is the same: describe what should be cached and how, and let the library handle the plumbing.
Third, decide what offline means for your site. Not everything needs to work offline. Pick the pages and data that matter when the connection drops — the menu, the timetable, the article the reader was halfway through — and cache those. Add an offline fallback page, a simple screen that says the connection is down and shows what is available. Test it by turning off your network in the developer tools and browsing the site.
Fourth, wire up installability and, if you need it, push. Make sure the install criteria pass in Chrome's audit, and add a manual "add to home screen" hint for iPhone users. For push, you need a server component to send the messages and a subscription flow that asks permission at the right moment.
Finally, measure after launch, not before. Lighthouse has a PWA audit that checks the installability criteria and the basics, but the audit is not the goal — the goal is what visitors do. Watch repeat visits, time on site, and conversion before and after the change, and compare against the same period before the PWA, not against a native app. If the numbers do not move, the problem is usually not the PWA. It is that the site was already fast, or that the audience never comes back.
Where PWAs still stumble
For all the progress, there are honest limits, and a guide that hides them would be doing you a disservice.
The iOS gaps are the most important. There is no automatic install prompt in Safari, and there never has been. Background sync does not work. Web Bluetooth, NFC, and USB are not available to web apps on iOS. Push notifications work since iOS 16.4, but only for installed home screen apps, and every push must be visible to the user. These are not bugs. They are deliberate platform decisions, and they are unlikely to change quickly. If your product depends on any of them, a PWA is the wrong choice for iPhone users.
Questions people ask before building one
Do PWAs work on iPhone?
Yes, since iOS 16.4, which shipped in March 2023. iPhone and iPad support installation to the home screen from Safari, standalone launch, offline use through the service worker, and Web Push notifications. Installation is manual — Safari shows no automatic prompt — and push only works after the site is installed.
Will a PWA appear in the App Store or Google Play?
Not by itself. A PWA is distributed through the web. Google Play accepts PWAs packaged through Trusted Web Activity, and Apple's App Store requires a native wrapper that adds real app value. A plain repackaging of a website will be rejected.
Does a PWA need the internet to work?
It needs the internet the first time, to load and cache its files. After that, the cached parts work offline. Anything that needs live data — submitting an order, checking a live price, sending a message — still needs a connection, unless you build a queue that syncs later.
How do I know if my PWA is working properly?
Run Lighthouse in Chrome's developer tools and look at the PWA audit, then test by hand: install it on a real Android phone and a real iPhone, turn on aeroplane mode, and try to use it. The audit catches configuration mistakes. Only a real device catches the experience mistakes.
What to do next
A progressive web app is not a new kind of software. It is a website that has been given three extra abilities: it can be installed, it can work offline, and it can send notifications. The technology is mature, the tooling is good, and the case studies are real — Starbucks, Pinterest, Twitter Lite, and Uber all measured genuine improvements, mostly because they made their sites smaller and faster, not because they added an icon.
The decision, in the end, is about your visitors. If they come back, if their connection is unreliable, and if they would never install your native app, a PWA is probably the cheapest useful thing you can build this year. If they visit once from a search result, it is complexity you do not need. And if your product lives or dies on hardware access or the app store, build the native app and be honest about why.
Start small if you decide to go ahead. Add HTTPS and the manifest first — that is a day's work. Add the service worker next, with a cache-first strategy for your static files and a fallback page for when the network drops. Test it on a real phone, on a real bad connection, before you tell anyone about it. Then measure what changes, and let the numbers decide whether you go further.
Comments
Post a Comment