BeforeInstallPromptEvent: BeforeInstallPromptEvent() constructor
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The BeforeInstallPromptEvent()
constructor creates a new BeforeInstallPromptEvent
object.
Syntax
new BeforeInstallPromptEvent(type)
new BeforeInstallPromptEvent(type, eventInitDict)
Parameters
-
type
-
A string with the name of the event, set to beforeinstallpromptevent
.
eventInitDict
Optional
-
An object with a single optional property platforms
, which is an array of strings, listing the platforms on which the event will be dispatched.
Specifications
Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
WebView Android |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
BeforeInstallPromptEvent |
44 |
79 |
No |
No |
31 |
No |
44 |
44 |
No |
32 |
No |
5.0 |
See also