A Better Install UI for PWAs
A step towards a native installation experience
Oct 16, 2023
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:

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:

And on desktop it will look like this:

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:
- a total of 8 screenshots will be shown in total for mobile and desktop
- the width and height of each image must be at least 320px and 3,840px at most
- only jpeg and png images are supported
- the maximum dimension can’t be more than 2.3 times the minimum dimension
- all images with the same “form_factor” value must have identical aspect ratios
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.