MDN self-hosted library · e01.org

BeforeInstallPromptEvent: platforms property

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.

no runnable cells web-api-instance-property upstream source

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

See also