Chrome Web Install API: adding an install button to your web app

Chrome 158 (November 2026) ships the Web Install API and the install element, so your web app can offer its own install button. How it works, the manifest and React code you need, and fixes for common problems.

Crest Design
Illustration for a guide to adding an install button to a web app with the Web Install API in Chrome 158.

If you run a web app that customers return to every week, such as a booking tool, a client portal or a reorder screen, the Web Install API is for you. With Chrome 158, which reached stable on November 17, 2026, a page can show its own "Install the app" button and ask the browser to install the web app when someone clicks it. This post explains how the Web Install API works, what your manifest needs, the React and Next.js code we use, and the problems teams run into.

The problem: people never find the install option

Clients often ask us for a "proper app" because their customers keep losing the bookmark or digging through emails to find the login link. A web app can already be installed in Chromium browsers, so it gets its own window and icon. The trouble is how people find that option. It sits in a small icon in the address bar or deep in the browser menu, and most visitors never see it.

Until now the only way to put an install button on the page was the beforeinstallprompt event. It only fires when the browser decides the app qualifies, you have to catch and store it, and it was never a cross-browser standard. In practice the button was unreliable, so many teams gave up on it, or paid for a native app when what they really needed was a shortcut back to the web app they already had.

How the Web Install API works

The Web Install API turns installation into something your page asks for directly. There are two entry points to the same feature:

  • navigator.install() in JavaScript. Called with no arguments, it installs the web app linked to the current page through its manifest. Called with an options object holding a manifest URL and, optionally, a manifestId, it can offer a different web app, including one on another site.
  • The <install> HTML element, the declarative version. The browser draws and controls the button itself, so you have limited control over how it looks, and you can put fallback content inside it for browsers that don't support it.

Three things about the design matter when you build with it.

The browser always asks. Your code can't install anything quietly. The call shows Chrome's own confirmation, and the visitor decides. That's why the API needs a real user gesture: call it from a click handler, not on page load or from a timer.

The manifest is the source of truth. The browser reads your web app manifest to work out the app's name, icons, start page and identity. The manifest's id is how the browser tells one app from another, so if you pass a manifestId, it has to match the id the browser calculates from the manifest.

The result is a promise. It resolves when the app is installed. It rejects with an AbortError when the visitor dismisses the prompt or the call wasn't allowed, and with a DataError when something is wrong with the manifest or its id. Your interface should handle both.

Flow from an install button click through feature check, navigator.install and the browser prompt, ending in installed, AbortError or DataError.
What happens between the click and the installed app.

Admins keep control too. On managed devices, Chrome's WebAppInstallByUserEnabled policy can switch off user installs, including ones started by this API, so business users may sometimes see nothing happen even though your code is fine.

How to add a Web Install API button in Next.js

1. Get the manifest right first

In a Next.js App Router project, add app/manifest.ts. Next.js serves it and adds the link tag to every page for you. Change the names, colors, paths and icon files to match your app:

import type { MetadataRoute } from 'next';

export default function manifest(): MetadataRoute.Manifest {
  return {
    id: '/',
    name: 'Acme Orders',
    short_name: 'Orders',
    start_url: '/dashboard',
    scope: '/',
    display: 'standalone',
    background_color: '#ffffff',
    theme_color: '#1c0a26',
    icons: [
      { src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png' },
      { src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png' },
    ],
  };
}

Set id once and never change it. If it changes later, browsers treat the result as a different app and people end up with two icons. Put start_url on the screen returning users actually want, which is usually the dashboard rather than the marketing homepage.

Checklist before adding an install button: HTTPS, a manifest with a fixed id, name and icons, start URL and scope, standalone display, and a fallback.
Get these right before you add the button.

2. Add a button that only appears where it works

This client component checks for support, hides itself when the app is already running in its own window, and handles both errors. Drop it into the layout or page where returning users land. TypeScript doesn't know about navigator.install yet, hence the small type at the top.

'use client';

import { useEffect, useState } from 'react';

type InstallNavigator = Navigator & { install?: () => Promise<unknown> };

export function InstallButton() {
  const [canInstall, setCanInstall] = useState(false);
  const [message, setMessage] = useState('');

  useEffect(() => {
    const nav = navigator as InstallNavigator;
    const standalone = window.matchMedia('(display-mode: standalone)').matches;
    setCanInstall(typeof nav.install === 'function' && !standalone);
  }, []);

  async function handleClick() {
    try {
      await (navigator as InstallNavigator).install!();
      setCanInstall(false);
      setMessage('Installed. You can open it from your apps.');
    } catch (err) {
      const name = err instanceof DOMException ? err.name : '';
      if (name === 'AbortError') {
        setMessage('No problem, you can install it later.');
      } else {
        console.error('Install failed', err);
        setMessage('Install is not available right now.');
      }
    }
  }

  return (
    <>
      {canInstall && (
        <button type="button" onClick={handleClick}>Install the app</button>
      )}
      {message && <p role="status">{message}</p>}
    </>
  );
}

Keep navigator.install() as the first thing the click handler does. If you wait on a network request before calling it, the browser may no longer count the call as coming from the click.

3. Or use the install element

If you'd rather let the browser draw the button, the element is a single tag. Anything inside it only shows in browsers that don't support it, so use it for a short note or link, not a fake button:

<install>
  <a href="/help/install">How to add our app to your device</a>
</install>

To offer a different app from this page, the element takes manifest and manifest id attributes. Their names changed during the trial period, so check the current Chrome docs before you copy an older example.

What we've learned so far

We'd add the Web Install API to web apps that people come back to: portals, dashboards, ordering and booking tools. We wouldn't put an install button on a brochure site or a blog. Nobody wants to install a page they visit once, and a pushy prompt makes the whole site feel like an ad.

  • Ask at a sensible moment. Show the button after someone signs in or finishes a task, not the moment they arrive.
  • Always feature-detect. Support outside Chromium-based browsers is still uneven, so the button must disappear cleanly where the API is missing. Don't try to fake an install flow for those browsers.
  • Treat the manifest as part of the product. Name, icon and start page are what people see every day once it's installed. Brief your designer on them, the same way you would for any app icon. Our website brief template has room for exactly this.
  • Keep the framework patched. An installed app is still your live site. The routine in our post on applying the November 2026 Next.js security patches applies to it as much as to any page.

Troubleshooting

Symptom Likely cause Fix
The button never appears The browser doesn't support the API, or the app is already open in its own window Test in an up-to-date Chrome tab, not the installed app; confirm 'install' in navigator in the console
The promise rejects at once with AbortError The call didn't come straight from a click, or the visitor closed the prompt Call navigator.install() first in the click handler, with no awaits before it
DataError in the console The manifest is missing, fails to load, or the manifestId you passed doesn't match its id Open DevTools > Application > Manifest, fix the errors listed, and match the id exactly
Nothing happens on work laptops A Chrome policy blocks user installs on managed devices Ask the customer's IT team; keep the browser version of the app working well
The installed app opens the wrong page start_url or scope points at the marketing site Point start_url at the app screen and keep it inside scope

Questions people ask

Does this replace a native app?

Not always. It gives a web app its own icon and window, which is often what customers mean when they ask for "an app". If you need app store presence or device features the web doesn't offer, a native or hybrid app is still the route.

Can I install the app without asking the visitor?

No. Chrome always shows its own prompt and the visitor decides. That's by design, and it's why the button should appear only where installing genuinely helps.

Do I need to rebuild my React app?

Usually not. Most of the work is a good manifest, icons and a small button component, plus testing. It's a contained piece of work on an existing React or Next.js app.

Why it matters for your business

For a web app, the hard part is getting people back. An installed app sits next to their other tools and opens straight to the screen they use, without a search or a bookmark. The Web Install API finally lets you offer that at the right moment, on your terms, without building and maintaining a separate native app. Done carefully, it's a small change that makes a product feel finished.

Your checklist: fix the manifest and its id, choose where the button belongs, feature-detect, call the API from the click, handle both errors, and test on a managed device as well as your own.

If you'd like help adding this to your product, our Next.js development team and React developers can plan and build it, or you can tell us about your web app.

(over to you)

Planning a build like this?

Tell us what you're building and we'll come back with ideas and next steps.