Declare the PWA (Progress web application) so Google Chrome detects it and offers visitors to install it.
You must write a manifest
file for your PWA, it describes your application, the version, the theme color, the app icon, etc...
The manifest file look like follow:
{
"background_color": "orange",
"description": "Cute and random little cat pictures.",
"display": "fullscreen",
"icons": [
{
"src": "icon/cat-icon.png",
"sizes": "192x192",
"type": "image/png"
}
],
"name": "Cute cat pictures",
"short_name": "Cats",
"start_url": "/pwa-examples/a2hs/index.html"
}
Install with Google Chrome desktop
You can test your PWA by installing it from a browser, this is how you install it on Google Chrome:
- Visit the Single Page application you want to install as a PWA.
- In the location tab, there is a
+
icon, click on it and select Install
- Notice the application being install on your system and launch it.
Uninstall with Google Chrome desktop
- Navigate to
chrome://apps/
and right click the application icon and select Remove from Chrome
You can read more about this manifest file here: