BeforeInstallPromptEvent: platforms property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef}}{{SeeCompatTable}}{{Non-standard_header}}

The **platforms** property of the {{domxref("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

{{Compat}}

See also

  • Making PWAs installable
  • How to provide your own in-app install experience on web.dev (2021)