Marked as work-in-progress (WIP). The content of this post may be unreliable or incomplete. Please check back later.
Open comments page
How to make your web app installable.
trueHow to make your web app installable.
Files:
.
├── index.html
└── manifest.json
The following settings are the minimum required for the installation banner (or chips) to shows up. The icon is a Blogger hosted pixel cat image that I've used for almost half a decade for mocking PWAs.
![]() |
manifest.json
{
"name": "My App",
"icons": [
{
"src": "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNmE38-ckZSxizmsxGvWCQWE2UxLcwcHWIH4kGJ_MidDbh0pCHParoHMs6f920gqLK6wSMcd1VYHOup9eHHJe-acIz4sjJm8TJ0X7GdfH_UUVDXIL0vNg7R4BAVkPIyF4v4pKEaFSAMqXc/s192-c-rw/2021-11-03+23_23_36-Untitled+%25282%2529+-+Windows+Photo+Viewer.png",
"type": "image/png",
"sizes": "192x192"
}
],
"start_url": "./",
"display": "standalone",
"background_color": "#202020",
"theme_color": "#202020"
}
You can also host your own icon. A minimum of 144x144px image is required for the installation icon. One of the supported format is PNG.
"icons": [
{
"src": "images/192.png",
"type": "image/png",
"sizes": "192x192"
}
],
Not required but may be essential:
viewport: to make your site fit on smaller screen.
charset: set character encoding of the page. Generally good to prevent character display issues.
Required:
link to manifest file.
index.html
<!DOCTYPE html>
<html>
<head>
<title>Web App</title>
<meta name="viewport" content="width=device-width"/>
<meta charset="UTF-8">
<!-- PWA manifest -->
<link rel="manifest" href="manifest.json"/>
</head>
<body>
<!-- ... -->
</body>
</html>
***
Part of the usual setup:
https://www.blogger.com/comment/fullpage/post/8166404610182826392/6246909595894311607 true