W3cubDocs

/DOM Events

install

The appinstalled event of the Web Manifest API is fired when the browser has successfully installed a page as an application.

Bubbles No
Cancelable No
Target objects Window
Interface Event

Examples

function handleInstall(ev) {
  console.log('Thank you for installing our app!'); 
} 

window.onappinstalled = handleInstall;

Inheritance

The appinstalled event implements the Event interface — it has available the properties and methods defined on this interface.

Specifications

Specification Status Comment
Web App Manifest
The definition of 'appinstalled' in that specification.
Working Draft Initial definition.

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support Yes ? 49
Disabled
49
Disabled
Disabled From version 49: this feature is behind the dom.manifest.onappinstall preference (needs to be set to true). To change preferences in Firefox, visit about:config.
? ? ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support ? Yes ? 49
Disabled
49
Disabled
Disabled From version 49: this feature is behind the dom.manifest.onappinstall preference (needs to be set to true). To change preferences in Firefox, visit about:config.
? ? ?

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/Events/install