← Back to release summary

beforeinstallprompt event for web/native app install banners

Category
Offline / Storage
Type
New or changed feature
Status
Enabled by default (Chrome 45)
Intent stage
None

Summary

An event for notifying the site that the browser is about to show an install banner, that also gives the site the ability to both suppress the banner, as well as show it later at a time of their choosing. Related: https://www.chromestatus.com/features/4540065577435136

Standards & signals

Docs: https://github.com/slightlyoff/AppInstallImprovements/blob/master/explainer.md#controlling-installation https://developer.mozilla.org/en-US/docs/Web/API/Window#Event_handlers https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeinstallprompt https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent

Samples: https://killer-marmot.appspot.com/web/ https://github.com/GoogleChrome/samples/tree/gh-pages/app-install-banner

View on chromestatus.com