web api instance property
BeforeInstallPromptEvent: platforms property
Limited availability
The platforms property of the BeforeInstallPromptEvent interface lists the platforms on which the event was dispatched. This is provided for user agents that want to present a choice of versions to the user such as, for example, “web” or “play” which would allow the user to choose between a web version or an Android version.
Value
An array of strings, in which each string identifies a target platform for the installation.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- Making PWAs installable
- How to provide your own in-app install experience on web.dev (2021)