Web features explorer

beforeinstallprompt

Limited availability

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.

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 Not supported
  • Firefox for Android Not supported
  • Safari Not supported
  • Safari on iOS Not supported

Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.

Usage (according to Chrome Platform Status)

~14.606% of page loads. More data at chromestatus.com.

Developer use cases

  • We run [Rocely](https://www.rocely.com/en), a recipe and meal-planning PWA. Users who install it to their home screen come back far more often than users who just bookmark it, so a reliable install step matters for retention. We want one install flow that works the same way regardless of browser, instead of branching our UI based on what the browser supports. We run [Rocely](https://www.rocely.com/en), a recipe and meal-planning PWA. Users who install it to their home screen come back far more often than users who just bookmark it, so a reliable install step matters for retention. We want one install flow that works the same way regardless of browser, instead of branching our UI based on what the browser supports. [see original comment]