Setting the policy specifies a list of web apps that install silently, without user interaction, and which users can't uninstall or turn off.
Each list item of the policy is an object with a mandatory member:
url (the URL of the web app to install)
and 6 optional members:
- default_launch_container
(for how the web app opens—a new tab is the default)
- create_desktop_shortcut
(True if you want to create Linux and
Microsoft® Windows® desktop shortcuts).
- fallback_app_name
(Starting with Google Chrome version 90,
allows you to override the app name if it is not a
Progressive Web App (PWA), or the app name that is temporarily
installed if it is a PWA but authentication is required before the
installation can be completed. If both
custom_name and
fallback_app_name are provided,
the latter will be ignored.)
- custom_name
(Starting with Google ChromeOS
version 99, and version 112 on all other desktop operating systems, allows you to
permanently override the app name for all web apps and PWAs.)
- custom_icon
(Starting with Google ChromeOS
version 99, and version 112 on all other desktop operating systems, allows you to
override the app icon of installed apps. The icons have to be square,
maximal 1 MB in size, and in one of the following formats: jpeg, png, gif, webp, ico.
The hash value has to be the SHA256 hash of the icon file. The url
should be accessible without authentication to ensure the icon can be used
upon app installation.)
- install_as_shortcut
(Starting with Google Chrome
version 107). If enabled the given url
will be installed as a shortcut, as if done via the "Create Shortcut..."
option in the desktop browser GUI.
Note that when installed as a shortcut it won't be updated if the
manifest in url changes.
If disabled or unset, the web app at the given
url will be installed normally.
See Google ChromeOS shelf.
Supported On:
Platform
Start
End
Chrome (Windows, Mac, Linux)
75
ChromeOS
75
Example value:
{"0":{"url":"https://www.google.com/maps","create_desktop_shortcut":true,"default_launch_container":"window"},"1":{"url":"https://docs.google.com","default_launch_container":"tab"},"2":{"url":"https://docs.google.com/editor","fallback_app_name":"Editor","default_launch_container":"window"},"3":{"url":"https://docs.google.com/document/d/ds187akjqih89","custom_name":"My important document","install_as_shortcut":true,"default_launch_container":"window"},"4":{"url":"https://weather.example.com","custom_icon":{"url":"https://mydomain.example.com/sunny_icon.png","hash":"c28f469c450e9ab2b86ea47038d2b324c6ad3b1e9a4bd8960da13214afd0ca38"}}}