beforeinstallprompt
Limited availability
The beforeinstallprompt
event fires when a Progressive Web App (PWA) is installable, usually on page load in browsers that support installing PWAs. You can use this event to prevent the install prompt from appearing until after the user interacts with an element on the page.
Learning resources on MDN
- BeforeInstallPromptEvent
- BeforeInstallPromptEvent: BeforeInstallPromptEvent() constructor
- BeforeInstallPromptEvent: platforms property
- BeforeInstallPromptEvent: prompt() method
- BeforeInstallPromptEvent: userChoice property
- Window: appinstalled event
- Window: beforeinstallprompt event
Browser support
- Chrome 76 Released on 2019-07-30
- Chrome Android 76 Released on 2019-07-30
- Edge 79 Released on 2020-01-15
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌