How to Enable the Web Install API
The experimental navigator.install() API enables one-click installation of PWAs directly from desktop Chrome or Edge.
Demo
- Make sure you're using the latest version of Edge or Chrome on your Mac or PC.
- Type
about://flagsin the URL bar and make sure the Web App Installation API flag (#web-app-installation-api) is enabled. - Tap the button below to install the app with
navigator.install().Pending: no installation attempted yet
How it works
With this new API, PWAs can be installed by invoking navigator.install() in compatible browsers. The new Web Install API streamlines web app installation by eliminating the need to handle the beforeinstallprompt event, allowing PWAs to be installed remotely from any website, promoting a more decentralized web and enabling PWAs to be freely distributed.
Support
The Web Install API is still experimental. Currently, it is supported only in Edge and Chrome (Windows and macOS) with a specific flag enabled. Don't want to bother with browser-level API implementations? Try Progressier.
API
Code
Links & Documentation
Ready to generate your PWA?
Try our PWA toolkit free of charge and without limits for 14 days. No credit card required.
Generate PWA See plans