Limited Availability
Progressive web app
beforeinstallprompt
The
beforeinstallprompt event fires when a Progressive Web App (PWA) is installable. You can cancel the event and later call event.prompt() to control when the installation prompt is shown. The appinstalled event fires when the PWA is successfully installed.
Baseline Status:
This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Jan 15, 2020.
Desktop Browser Engine Support
Google Chrome
76
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
—
Unsupported
Microsoft Edge
79
Supported
Mobile Browser Engine Support
Chrome Android
76
Firefox Android
—
Safari iOS
—
Specifications and References
MDN Browser Compat Data Keys:
api.BeforeInstallPromptEvent ↗
api.BeforeInstallPromptEvent.BeforeInstallPromptEvent ↗
api.BeforeInstallPromptEvent.platforms ↗
api.BeforeInstallPromptEvent.prompt ↗
api.BeforeInstallPromptEvent.userChoice ↗
api.Window.appinstalled_event ↗
api.Window.beforeinstallprompt_event ↗
id: beforeinstallprompt