WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
182864
Feature request: Web Manifest's beforeinstallprompt event and browser triggered add-to-homescreen prompt
https://bugs.webkit.org/show_bug.cgi?id=182864
Summary
Feature request: Web Manifest's beforeinstallprompt event and browser trigger...
Kenji Baheux
Reported
2018-02-15 22:34:18 PST
The BeforeInstallPromptEvent is dispatched when the site is allowed to present a site-triggered install prompt, or prior to the user agent presenting an automated install prompt. It allows the site to cancel the automated install prompt, as well as manually present the site-triggered install prompt. A browser may choose to show an add-to-home screen prompt based on user engagement signals, the presence of a valid Web Manifest and other signals of a good user experience. Impact: - Being able to control when to show a browser triggered add-to-home-screen prompt is important for some verticals like e-commerce to avoid disrupting users in the process of buying or reviewing an item. Spec:
https://w3c.github.io/manifest/#beforeinstallpromptevent-interface
Demos: -
https://killer-marmot.appspot.com/web/
-
https://github.com/GoogleChrome/samples/tree/gh-pages/app-install-banner
Documentation -
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
Enabled by default in Chrome 45+ Consensus & Standardization Firefox: Public support Edge: No public signals Safari: No public signals Web Developers: Positive
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-02-15 22:37:09 PST
<
rdar://problem/37595905
>
Maciej Stachowiak
Comment 2
2018-02-15 22:52:32 PST
This is a Safari request. Radar moved and I'm closing the bugzilla.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug