PWA & Install

Install Prompt

Probing…

Install Prompt is a web platform capability in the PWA & Install category. Prompt visitors to install this site as an app. Supported in Chromium 73+; not available in Firefox and Safari. Requires a secure context (HTTPS or localhost) and a user gesture such as a click or tap.

Secure contextUser gesture

Try it

Loading demo…

Code

let deferred = null
window.addEventListener('beforeinstallprompt', (e) => {
  e.preventDefault()
  deferred = e
})

// later, from a user gesture:
await deferred.prompt()
const { outcome } = await deferred.userChoice
console.log(outcome) // 'accepted' | 'dismissed'

Browser support

Chromium
73
Firefox
No
Safari
No

Frequently asked questions

Which browsers support Install Prompt?

Supported in Chromium 73+; not available in Firefox and Safari.

Does Install Prompt require HTTPS?

Yes. Install Prompt needs a secure context, so it only works over HTTPS (or on localhost during development).

What is Install Prompt used for?

Prompt visitors to install this site as an app.

Can I try Install Prompt in my browser?

Yes. shwcs.net runs a live Install Prompt demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.

MDN reference ↗ Specification ↗