We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

The push event is fired to indicate that a Service Worker has received a push message.

General info

Specification
Push API
Interface
PushEvent
Bubbles
No
Cancelable
No
Target
Service worker
Default Action
None

Properties

data
Provides access to the data payload of a push message, contained in a PushMessageData object.

Examples

self.addEventListener('push', function(event) {
  var obj = event.data.json();
  port.postMessage(obj);
});

pushsubscriptionchange

See also

Document Tags and Contributors

Tags: 
Contributors to this page: jrconlin, chrisdavidmills
Last updated by: jrconlin,