< Back

A Better Install UI for PWAs

A step towards a native installation experience

calendar

Oct 16, 2023

Header for posting A Better Install UI for PWAs
Installation of What PWA Can Do Today in Chrome on desktop

Installing a PWA (Progressive Web App) finally got a better user-experience in Chrome on desktop and Android recently.

Contrary to native apps, PWAs are installed from the web instead of a centralised repo like the Apple App Store or Google Playstore. Typically, the user-experience of installation differs between browsers and doesn’t offer much information by default.

For example, this is what the installation dialog of X looks like in Chrome on desktop:

Installation of the X PWA in Chrome on desktop

This experience is not familiar to users and can therefore confuse them and get them to cancel the dialog.

Since Chrome for Android 94 and Chrome for desktop 108, web apps can offer their users a richer install UI that’s closer to installing native apps with some simple additions to manifest.json. A description of the PWA can be added and 8 screenshots in total for mobile and desktop.

This will turn the installation dialog on mobile into something like this:

Installation of What PWA Can Do Today in Chrome on Android

And on desktop it will look like this:

Installation of What PWA Can Do Today in Chrome on desktop

Activating the richer install UI

The description is taken from the “description” field in manifest.json. To add screenshots for mobile, add this to manifest.json:

"screenshots":[
{
"src": "/path/to/img1.png",
"sizes": "400x822",
"type": "image/png",
"form_factor": "narrow"
}
]

For mobile screenshots, “form_factor” must be “narrow”.

For desktop screenshots, add this:

"screenshots":[
{
"src": "/path/to/img2.png",
"sizes": "1280x676",
"type": "image/png",
"form_factor": "wide"
}
]

For desktop screenshots, “form_factor” must be wide.

Criteria for screenshots

For screenshots to be displayed in the installation dialog, all images must follow these criteria:

Users of web apps have been confused by the old user-experience of installing web apps, partly also because the concept of “installing” a web app is relatively new.

This richer install UI brings the experience closer to the user-experience of installing native apps and will therefore more closely match users’ expectations and avoid confusion.

Currently, this is under development and may change in the future.


Join my email list Modern Web Weekly, for a weekly update on Progressive Web Apps (PWA), Web Components and new features of the modern web platform, tested and explained in plain English.