Skip to content

Commit c69f545

Browse files
Add BeforeInstallPrompt feature (#2510)
1 parent fcae631 commit c69f545

File tree

4 files changed

+55
-30
lines changed

4 files changed

+55
-30
lines changed

features/beforeinstallprompt.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: beforeinstallprompt
2+
description: 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.
3+
# The only engine where beforeinstallprompt is not supported is Chromium, and its implementation differs from the spec.
4+
# BCD/MDN don't link to the spec because of this, and instead document what's in Chromium.
5+
spec: https://wicg.github.io/manifest-incubations/
6+
group: progressive-web-app
7+
compat_features:
8+
- api.Window.beforeinstallprompt_event
9+
- api.BeforeInstallPromptEvent
10+
- api.BeforeInstallPromptEvent.BeforeInstallPromptEvent
11+
- api.BeforeInstallPromptEvent.platforms
12+
- api.BeforeInstallPromptEvent.prompt
13+
- api.BeforeInstallPromptEvent.userChoice
14+
- api.Window.appinstalled_event
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Generated from: beforeinstallprompt.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "76"
8+
chrome_android: "76"
9+
edge: "79"
10+
compat_features:
11+
# baseline: false
12+
# support:
13+
# chrome: "44"
14+
# chrome_android: "44"
15+
# edge: "79"
16+
- api.BeforeInstallPromptEvent
17+
- api.BeforeInstallPromptEvent.BeforeInstallPromptEvent
18+
- api.BeforeInstallPromptEvent.platforms
19+
- api.BeforeInstallPromptEvent.userChoice
20+
21+
# baseline: false
22+
# support:
23+
# chrome: "61"
24+
# chrome_android: "61"
25+
# edge: "79"
26+
- api.Window.beforeinstallprompt_event
27+
28+
# baseline: false
29+
# support:
30+
# chrome: "64"
31+
# chrome_android: "57"
32+
# edge: "79"
33+
- api.Window.appinstalled_event
34+
35+
# ⬇️ Same status as overall feature ⬇️
36+
# baseline: false
37+
# support:
38+
# chrome: "76"
39+
# chrome_android: "76"
40+
# edge: "79"
41+
- api.BeforeInstallPromptEvent.prompt

features/draft/spec/manifest-incubations.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

features/draft/spec/manifest-incubations.yml.dist

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)