Window: appinstalled event

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!'); 
};

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
onappinstalledChrome Full support 64Edge ? Firefox 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.
IE ? Opera No support NoSafari ? WebView Android No support NoChrome Android Full support 57Edge Mobile ? 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 NoSafari iOS ? Samsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
User must explicitly enable this feature.
User must explicitly enable this feature.

See also

Document Tags and Contributors

Last updated by: mfuji09,