Skip to content

    Frontend System Design

    Responsive Web, PWA or Native: a Decision Framework

    Choose between a responsive site, an installable PWA, a store shell and a native app by the lowest rung that meets your requirements.

    By Published 13 min read

    • frontend-system-design
    • pwa
    • responsive-design
    • mobile
    • decision-framework
    Share

    Standard lessonintermediateFrontend System Design

    Before this: Mobile and Cross-Platform Front Ends, Installable PWAs, the Manifest and Push Notifications

    What you'll learn: By the end of this lesson you will be able to separate responsive, adaptive, PWA, store-shell and native approaches, climb them as a ladder where each rung adds a capability and a cost, list the requirements that force you up a rung (store listing, a native API, platform-native views), name the documented iOS and App Store limits that surprise teams, and write a decision record that picks the lowest rung that works.

    A shop owner can sell from a market stall, a rented unit, or a flagship store. The stall costs least and anyone walking past can buy; the flagship reaches customers a stall cannot, but brings rent, staff and a landlord's rules. Sensible owners start at the stall and move up only when a customer need cannot be met there. Choosing how to ship a front end is the same decision, and it is easy to make it from fashion instead of need.

    This lesson builds on mobile and cross-platform front ends, installable PWAs and service workers. The question here is narrower: given what the product must do, which rung do you stand on? The running example is a grocery shopper app: browse, reorder, a cart, and an alert when a delivery is close.

    Verified on 2026-12-02 against the MDN, WebKit, Apple and Chrome pages listed at the end. No phone, emulator or store account was available. The two Node scripts on this page were run; nothing platform-specific was.

    The core idea

    1. The approaches form a ladder, not a menu. Responsive web, then PWA, then a store shell around the web app, then React Native or fully native. Each rung contains the one below it and adds capabilities, and each adds cost: a build, a review process, a second set of screens.
    2. Requirements pick the rung, preferences do not. A requirement is something a user or the business cannot do without, such as "must be findable in the stores". "Feels more app-like" is a preference. Take the lowest rung that covers every requirement, and write down which requirement drove the choice.
    3. The rungs stack. A responsive site is the base of the PWA, and the PWA is often the content inside the shell. Moving up usually adds a layer, not a rewrite.

    Four words that get mixed up

    Responsive. MDN defines responsive web design as "an approach to make web pages render well on all screen sizes and resolutions while ensuring good usability", and stresses that it is not a separate technology but a set of practices: flexible grids, images that do not exceed their container (max-width: 100%), and media queries. Mobile browsers also need the viewport tag, <meta name="viewport" content="width=device-width" />; MDN says that without it mobile browsers use a wider virtual viewport and breakpoints may not work as intended.

    Adaptive. In this lesson, adaptive means choosing between different layouts or code by device class instead of letting one fluid layout stretch. It is a term of this course, not a standard. You can adapt in CSS, because container queries style a component by the size of its container, "an alternative to media queries, which apply styles to elements based on viewport size". You can also adapt on the server: the Sec-CH-UA-Mobile header tells a server whether the browser "prefers a mobile experience". MDN marks that header as not Baseline and says responses that vary by it need a Vary header so caches do not mix variants. Adaptive costs more to test than responsive.

    PWA. MDN defines a progressive web app as one "built using web platform technologies" that gives "a user experience like that of a platform-specific app": one codebase, installable, able to work offline and in the background.

    Native. Code written against the platform's UI toolkit, or a framework such as React Native that draws platform views. A shell that merely loads your website sits between PWA and native, treated below.

    Figure 1. The ladder

    The ladder: each rung adds a capability and a costResponsive web to PWA (+ manifest, worker); PWA to Store shell (+ store build); Store shell to Native app (+ second UI)Responsive web: link, search, no installResponsive weblink, search, noinstallPWA: install, offline, pushPWAinstall, offline,pushStore shell: stores, native pluginsStore shellstores, nativepluginsNative app: native viewsNative appnative views+ manifest, worker+ store build+ second UI

    How to read this: climb only as far as a requirement forces you. The label on each arrow is the extra work of the step: a manifest and service worker for the PWA, a signed store build for the shell, a separate UI layer for native.

    What each rung gives and what it costs

    Rung Reach and install Platform access Main cost
    Responsive web A link; search engines; nothing to install Web APIs, as the browser offers them Layout testing across widths
    PWA Can be installed; behaviour differs by browser and OS Web APIs, plus offline and background operation Manifest, service worker, cache invalidation
    Store shell (a WebView or similar) Store listing; same web UI inside Native plugins Store build, review, update coordination, WebView quirks
    Native or React Native Store listing; platform views Whatever the platform offers A second UI layer and the skills to maintain it

    Three of these claims need the sources, because they are where surprises live.

    Installing a PWA is not one thing. MDN says an installable PWA needs a manifest and HTTPS (or localhost), and that a service worker is not required for installability, though many PWAs use one for offline use. On Chromium browsers the manifest needs a name, icons that include 192 px and 512 px sizes, a start_url and a display value. Support is uneven: Firefox on desktop "does not support installing PWAs using a manifest file". On Android only Chrome (with Google Mobile Services) and Samsung Internet on Samsung devices install a PWA as a WebAPK; other browsers add a shortcut that opens the site in the browser. On iOS 16.4 and later a PWA can be installed from the Share menu in Safari, Chrome, Edge, Firefox and Orion; earlier versions needed Safari. And beforeinstallprompt, the event that lets you show your own Install button, "is not supported on iOS", so an iPhone user has to find the Share menu themselves.

    Push on iOS depends on installation. WebKit's announcement for iOS and iPadOS 16.4 says a web app added to the Home Screen can ask for permission to send push notifications, only in response to direct user interaction such as tapping a subscribe button. Web Push there relies on the Push API, the Notifications API and service workers working together. If the alert "your delivery is five minutes away" matters, the PWA route works on iOS only for users who installed it.

    A shell around a website can be refused. Apple's App Store Review Guidelines, section 4.2, say an app "should include features, content, and UI that elevate it beyond a repackaged website", and 4.2.2 says apps should not primarily be "web clippings". Section 2.5.2 says an app may not "download, install, or execute code which introduces or changes features or functionality of the app", and 4.7 lets an app offer HTML5 and JavaScript mini apps that are not embedded in the binary while making the app responsible for them, with 4.7.2 forbidding exposure of native platform APIs to that software without permission. These are the rules at the time of writing, they change, and review outcomes are decisions made by people. Read them as a risk to plan for, not as a prediction. A shell that adds real native features (camera scanning, native checkout sheets) is on firmer ground than one that only wraps the site.

    On Android, a related option is the Trusted Web Activity. Chrome's overview describes it as a way to open your own web-app content in your app using a protocol based on Custom Tabs, verified with Digital Asset Links so the app and site come from the same developer. The content is rendered by the user's browser, and the host app has no direct access to web state such as cookies or localStorage.

    Illustration 1: the minimal example

    The ladder can be written as data: each requirement has the lowest rung that can meet it, and the answer is the highest of the lowest rungs. That makes the decision reviewable. The table of requirements is this lesson's model of the sources above, not a standard. Run in Node:

    const rungs = ["responsive web", "PWA", "store shell around the web app", "React Native or fully native"];
    // The lowest rung that can satisfy each requirement, from the sources cited in the lesson.
    const lowestRung = {
      "reach by link, no install": 0,
      "install from the browser": 1,
      "work offline": 1,
      "push on iOS": 1,          // needs the PWA added to the Home Screen
      "store listing": 2,
      "native plugin or API": 2,
      "platform-native views": 3,
    };
    function choose(needs) {
      const unknown = needs.filter((n) => !(n in lowestRung));
      if (unknown.length) throw new Error("unknown need: " + unknown.join(", "));
      const level = Math.max(0, ...needs.map((n) => lowestRung[n]));
      const driver = needs.filter((n) => lowestRung[n] === level);
      return { rung: rungs[level], because: driver };
    }
    const products = {
      "recipe blog": ["reach by link, no install"],
      "shopper app (browse, reorder, alerts)": ["install from the browser", "work offline", "push on iOS"],
      "shopper app that must be in the stores": ["work offline", "store listing"],
      "scanner for store staff": ["store listing", "native plugin or API", "platform-native views"],
    };
    for (const [name, needs] of Object.entries(products)) {
      const r = choose(needs);
      console.log(name.padEnd(42), "->", r.rung, "| driven by:", r.because.join(", "));
    }

    Output, from running it in Node 26.13.1:

    recipe blog                                -> responsive web | driven by: reach by link, no install
    shopper app (browse, reorder, alerts)      -> PWA | driven by: install from the browser, work offline, push on iOS
    shopper app that must be in the stores     -> store shell around the web app | driven by: store listing
    scanner for store staff                    -> React Native or fully native | driven by: platform-native views

    The driven by column is the useful part: it names the requirement that cost you the rung. If the business later drops "store listing", the shell is no longer justified, and the record says why it existed.

    The decision as a flow

    Figure 2. Climbing only when forced

    flowchart TD accTitle: Choosing the lowest rung that meets the requirements accDescr: A decision flow. Start with a responsive site. If users must install it, work offline or get push, add PWA features. If the product must be in an app store or needs a native API the web lacks, wrap it in a store shell with plugins. If it needs platform-native views or heavy native integration, build a native or React Native UI. At each step, ask whether a preference or a requirement is driving the move. S["Start: responsive web"] --> Q1{"Install, offline
    or push needed?"} Q1 -->|"no"| W["Stay responsive"] Q1 -->|"yes"| P["Add PWA features"] P --> Q2{"Store listing or a native
    API the web lacks?"} Q2 -->|"no"| P2["Stay a PWA"] Q2 -->|"yes"| H["Store shell + plugins"] H --> Q3{"Platform-native views or
    deep native integration?"} Q3 -->|"no"| H2["Stay a shell"] Q3 -->|"yes"| N["Native or React Native"]

    How to read this: every diamond asks about a requirement, not a taste. A "no" ends the walk. The decision record you write at the end names the diamond that said "yes".

    Before climbing for a capability, check it in MDN's compatibility data for the browsers you target: support changes faster than a lesson does.

    Illustration 2: the realistic example

    The shopper app is a product list, a product page, a cart and an order tracker, built by four web developers. The product owner's requirements: used on phones in the supermarket; works on a weak connection; reminds a customer when a delivery slot is near; found by searching "grocery app" in a store.

    Take the ladder in order. Phones and weak connections: a responsive layout plus a service worker for the list and cart, so a PWA. Reminders: Web Push, which on iOS needs the Home Screen install, so the app must guide iPhone users through it. Store search is the one requirement a PWA cannot meet. Either accept that and rely on web search and a link in the delivery email, or climb to a shell, which then needs a feature a website lacks, such as a barcode scanner plugin, or it risks the 4.2 concern above.

    Figure 3. Installing on iOS to receive a push

    sequenceDiagram accTitle: Getting push permission on an iPhone accDescr: The shopper opens the site in a browser tab. The page cannot show an install prompt on iOS because beforeinstallprompt is not supported there. The page explains how to use the Share menu to add the app. After installation, the shopper opens it from the Home Screen and taps a subscribe button, and only then can the page ask for notification permission. participant S as Shopper participant P as Web app participant OS as iOS S->>P: opens in a browser tab P-->>S: shows steps for the Share menu (no install prompt event) S->>OS: Share, then add to Home Screen S->>P: opens from the Home Screen S->>P: taps "Remind me" P->>OS: asks for notification permission OS-->>S: permission prompt

    How to read this: the permission request is the last step and must follow a tap. A page that asks on first load, in a tab, is asking at the one moment the platform does not allow it.

    Illustration 3: a failure, the shell that was not enough

    A team wraps its website in a store shell for the listing: a WebView pointing at the site, no native features. Two risks follow from the sources, neither a certainty. The Apple guidelines quoted above name "a repackaged website" and "web clippings" in the 4.2 concern, so a review may reject it; and if the shell loads remote pages that add features, 2.5.2 and 4.7 may apply. The shell's cost was paid for one requirement, and the record should say what it adds besides the listing.

    Trade-offs

    Choice Gain Cost
    Stay responsive One deploy, search reach, no review No install, no push on its own
    Add PWA features Install, offline, push where supported Uneven support; iOS push needs the Home Screen install
    Store shell Store listing, native plugins Review risk, a second release path, WebView quirks
    Native or React Native Platform views and full API access Separate UI layer, more skills, slower change

    Build it

    This lesson has no lab: the framework is a thinking tool, and the platform parts need a phone or emulator that was not available. The one runnable artefact is the Node script in Illustration 1 (save it as rung.mjs, run node rung.mjs). It models this lesson's own table; the sources, not the script, are the evidence. Browser installation, iOS push and App Store review were not tested.

    In practice: the grocery shopper app

    NOTE

    This is a realistic scenario, not a case history. It is a composite built from common production patterns. It describes no specific company or product, and every number in it is an illustrative assumption.

    The situation

    A grocery marketplace has a responsive website. The product team asks for "an app". Asked why: customers want delivery reminders, the site is slow on a weak connection, and executives want a store presence. Nobody has written the requirements down.

    Starting architecture

    Figure 4. Today: a responsive site with no offline or reminders

    Starting architecture: a site that needs the network for everythingResponsive site to Shop API (every view); Shop API to Delivery email (slot near)Responsive site: no workerResponsivesiteno workerShop API: catalogue, cart, ordersShop APIcatalogue, cart,ordersDelivery email: the only reminderDelivery emailthe only reminderevery viewslot near

    How to read this: the warning boxes are the two gaps: nothing works offline, and the only reminder is an email.

    Options considered

    Option What it fixes What it costs Risk
    PWA on the current site Offline lists, install, reminders where supported Manifest, worker, install guidance for iOS Uneven install and push support
    React Native app now Store listing and native views A second UI team Slower delivery for a need the web can meet

    The decision

    Field Decision record
    Context Requirements: offline on a weak connection, delivery reminders, store presence wanted by management.
    Decision Ship a PWA now. Treat the store listing as a requirement to re-argue, not a given; a shell needs a native feature that justifies it.
    Consequences, good One codebase and release path; reminders reach installed users; reuse of every existing screen.
    Consequences, bad No store presence at first; iPhone users must install from the Share menu to get push.
    Revisit when Store presence becomes a stated requirement, or a native-only API (such as a scanner the browser lacks) becomes one.

    Rollout and verification

    1. Write the requirement list and mark each as requirement or preference.
    2. Add the manifest and a minimal worker, then test installation on each browser the audience uses, on real devices.
    3. Check the iOS path by hand: a tab, the Share menu, the Home Screen, the subscribe tap, the permission prompt.
    4. Measure install and opt-in rates for a few weeks before deciding on a shell.

    The 2 a.m. failure

    A reminder campaign sends push messages and the opt-in rate on iPhone is near zero. The page asked for permission on first load in a browser tab, which the platform does not allow before the app is on the Home Screen.

    First three checks: (1) was the page running as an installed web app or in a tab; (2) is the request tied to a tap; (3) does the page explain installation on iOS. Mitigation: show a short guide for the Share menu and move the request behind a "Remind me" button. Follow-up: a manual test of the whole iOS path before each release.

    Architect's notes

    • Write the requirement, not the technology. "Findable in the stores" can be argued; "we need an app" cannot.
    • Keep the lower rung working. The PWA stays the base of the shell.
    • Name the iOS limits in the plan.
    • Re-read store rules at each decision. They change.

    Common mistakes

    • Choosing native because competitors did.
    • Assuming PWAs install and push everywhere alike.
    • Showing a custom Install button that never appears on iOS.
    • Asking for notification permission on page load.
    • Wrapping a website in a shell with no native features and expecting approval.
    • Skipping the viewport meta tag.

    Key takeaways

    • The approaches are a ladder: responsive, PWA, store shell, native. Take the lowest rung that covers every requirement.
    • Responsive is an approach from fluid grids, flexible images and media queries; adaptive, in this course, means choosing layouts by device class.
    • A PWA needs a manifest and HTTPS; a service worker is not required for installability, only for offline.
    • On iOS there is no beforeinstallprompt, and Web Push needs the web app on the Home Screen and a tap.
    • A store shell carries documented review risk; a repackaged website is the named concern.
    • Write down the requirement that forced each rung.

    Practice exercises

    Exercise 1: Starter (30 min). Add two requirements of your own to the lowestRung table in Illustration 1 (for example, one that only a shell can meet) and predict the output before running.

    Exercise 2: Intermediate (2 hours). For a product you know, list ten features and mark each requirement or preference, then run the ladder and write a decision record that names the driving requirement.

    Exercise 3: Advanced (half day). Read the Apple sections named above and list which of a shell's features are native and which are web content. State what you could not decide from the text.

    In this course:

    Official documentation

    Ask about this article

    Get answers grounded in this post. AI-generated — based on this article, and may be imperfect.

    Scaled AI Weekly

    Enjoyed this? Get more like it every Monday.

    Real architecture decisions, LLMOps patterns that survive production, and engineering leadership advice — from 12+ years of building at enterprise scale. Free. No spam. Unsubscribe anytime.

    Get new articles by email

    Free. We email a confirmation link first, and you can unsubscribe from any email.

    Join engineers building production AI systems

    Comments