This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The ExtendableEvent() constructor creates a new ExtendableEvent object.


var myExtendableEvent = new ExtendableEvent(type, init);


The type of the ExtendableEvent, for example install, activate.
init Optional
An options object containing any custom settings that you want to apply to the event object. Currently no possible options exist inside the spec, but this has been defined for forward compatibility across the different derived events.


Specification Status Comment
Service Workers
The definition of 'ExtendableEvent' in that specification.
Working Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support40 ?441 No24 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4040 ?4424 No4.0

1. Service workers (and Push) have been disabled in the Firefox 45 & 52 Extended Support Releases (ESR).

See also

Document Tags and Contributors

Contributors to this page: fscholz, chrisdavidmills, kscarfone
Last updated by: fscholz,