The onappinstalled
attribute of the Window
object serves as an event handler for the appinstalled
event, which is dispatched once the web application is successfully installed as a progressive web app. The event that is fired is a "simple event" that implements the Event
interface.
window.onappinstalled = function(event) { ... };
window.onappinstalled = function(ev) { console.log('The application was installed.'); };
Specification | Status | Comment |
---|---|---|
Web App Manifest The definition of 'Window.onappinstalled' in that specification. | Working Draft | Initial specification. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | Yes | ? | 49
|
? | ? | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | ? | Yes | ? | 49
|
? | ? | ? |
© 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/API/window/onappinstalled