Patterns for promoting PWA installation


目录

Installing your Progressive Web App (PWA) can make it easier for users to find and use. Even with browser promotion, some users don't realize that they can install a PWA, so it can be helpful to provide an in-app experience that you can use to promote and enable installation of your PWA.

Screenshot of simple install button in PWA.

A simple install button provided within your PWA.

This article is by no means exhaustive, but offers a starting point for different ways to promote the installation of your PWA. Regardless of which pattern, or patterns you use, they all lead to the same code that triggers the install flow, documented in How to provide your own in-app install experience.

Best practices {: #best-practices }

There are some best practices that apply no matter which promotional patterns you're using on your site.

Automatic browser promotion {: #browser-promotion }

When certain criteria are met, most browsers automatically indicate to the user that your Progressive Web App is installable. For example, desktop Chrome shows an install button in the omnibox.

Screenshot of omnibox with a visible install indicator.

<figcaption>
  Browser-provided install promotion (desktop).
</figcaption>

Screenshot of browser-provided install promotion.

<figcaption>
  Browser-provided install promotion (mobile).
</figcaption>

Chrome for Android shows a mini infobar to the user, though this can be prevented by calling preventDefault() on the beforeinstallprompt event. If you do not call preventDefault(), the banner will be shown the first time a user visits your site and meets the installability criteria on Android, and then again after approximately 90 days.

User interface promotional patterns {: #app-ui-patterns }

User interface promotional patterns can be used for almost any kind of PWA and appear in places such as site navigation and banners. As with any other type of promotional pattern, it's important to be aware of the user's context to minimize disruption of the user's journey.

Sites which are thoughtful about when they trigger promotion UI achieve a larger number of installs and avoid interfering with the journeys of users who aren't interested in installation.

Simple install button {: #simple-button }

The simplest possible UX is to include an 'Install' or 'Get app' button at an appropriate location in your web content. Ensure the button doesn't block other important functionality and is out of the way of the user's journey through your application.

Custom install button..

Simple install button.

Fixed header {: #header }

This is an install button that is part of the header of your site. Other header content often includes site branding such as a logo and the hamburger menu. Headers may be position:fixed or not depending on your site's functionality and user needs.

Custom install button in header.

Custom install button in header.

When used appropriately, promoting PWA installation from the header of your site is a great way to make it easier for your most loyal customers to return to your experience. Pixels in your PWA header are precious, so make sure your installation call to action is appropriately sized, of greater importance than other possible header content, and unintrusive.

Custom install button in header

Custom install button in header

Make sure you:

Navigation menu {: #nav }

Custom install button in nav menu

Add an install button/promotion in a slide out navigation menu.

The navigation menu is a great place for promoting the installation of your app since users who open the menu are signaling engagement with your experience.

Make sure you:

Landing page {: #landing }

The purpose of a landing page is to promote your products and services, so this is one place where it is appropriate to go large when promoting the benefits of installing your PWA.

Custom install prompt on a landing page.

Custom install prompt on a landing page.

First, explain your site's value proposition, then let visitors know what they'll get from installation.

Make sure you:

Install banner {: #banner }

Most users have encountered installation banners in mobile experiences and are familiar with the interactions offered by a banner. Banners should be used carefully because they can disrupt the user.

Custom install banner at top of page.

A dismissible banner at the top of the page.

Make sure you:

Temporary UI {: #temporary-ui }

Temporary UI, such as the Snackbar design pattern, notifies the user, and allows them to easily complete an action, in this case, installing the app. When used properly, these kinds of UI patterns don't interrupt the user flow, and are typically automatically dismissed if ignored by the user.

Custom install banner as snackbar.

A dismissible snackbar indicating the PWA is installable.

Show the snackbar after a few interactions with your app. If it appears on page load, or out of context, it can be easily missed, or lead to cognitive overload. When this happens, users will simply dismiss everything they see. Remember, new users to your site may not be ready to install your PWA. Therefore, it's best to wait until you have strong interest signals from the user before using this pattern, for example, repeat visits, a user sign in, or similar conversion event.

Custom install banner as snackbar.

A dismissible snackbar indicating the PWA is installable.

Make sure you:

After conversion

Immediately after a user conversion event, for example after a purchase on an e‑commerce site, is an excellent opportunity to promote the installation of your PWA. The user is clearly engaged with your content, and a conversion often signals that the user will engage with your services again.

An install promotion after conversion.

An install promotion after a user has completed a purchase.

Booking or checkout journey {: #journey }

Show an install promotion during or after a sequential journey such as after booking or checkout flows. If you're displaying the promotion after the user has completed the journey, you can often make it more prominent since the journey is completed.

An install promotion after a user journey.

An install promotion after a user journey.

Make sure you:

Sign up, sign in, or sign out flow {: #sign-up}

This promotion is a special case of the journey promotional pattern where the promotion card can be more prominent.

A custom install button on the sign up page.

A custom install button on the sign up page.

These pages are usually only viewed by engaged users, where the value proposition of your PWA has already been established. There's also often not a lot of other useful content to place on these pages. As a result, it's less disruptive to make a larger call-to-action as long as it's not in the way.

Make sure you:

Inline promotional patterns

Inline promotional techniques interweave promotions with site content. This is often more subtle than promotion in the user interface, which has tradeoffs. You want your promotion to stand out enough that interested users will notice it, but not so much that it detracts from the quality of your user experience.

In-feed {: #in-feed }

An in-feed install promotion appears between news articles or other lists of information cards in your PWA.

An install promotion within a content feed.

An install promotion within a content feed.

Your goal is to show users how to access the content they're enjoying more conveniently. Focus on promoting features and functionality that will be helpful to your users.

Make sure you:


版本号 #3
由 壳壳虫 创建于 2026-10-31 23:09:13 UTC
由 cocobook-sync 更新于 2026-11-04 17:39:48 UTC