Web/API/Window/appinstalled event

From Get docs

ObsoleteThis feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.


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
Interface Event
Event handler onappinstalled

Examples

You can use the appinstalled event in an addEventListener method:

window.addEventListener('appinstalled', function() { 
  console.log('Thank you for installing our app!'); 
});

Or use the onappinstalled event handler property:

window.onappinstalled = function() { 
  console.log('Thank you for installing our app!'); 
};

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet

onappinstalled

Deprecated'Non-standard'

Chrome

Full support 64

Edge

Full support ≤79

Firefox No support 49 — 76

Disabled'

No support 49 — 76

Disabled'

Disabled' From version 49 until version 76 (exclusive): this feature is behind the dom.manifest.onappinstall preference (needs to be set to true). To change preferences in Firefox, visit about:config.

IE

?

Opera

No support No

Safari

?

WebView Android

No support No

Chrome Android

Full support 57

Firefox Android Full support 49

Disabled'

Full support 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.

Opera Android

No support No

Safari iOS

?

Samsung Internet Android

Full support 7.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.'
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.'
Deprecated. Not for use in new websites.
User must explicitly enable this feature.'
User must explicitly enable this feature.


See also