PushEvent
The PushEvent interface of the Push API represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription. Available only in secure contexts.
Properties
The data read-only property of the PushEvent interface returns a reference to a PushMessageData object containing data sent to the PushSubscription.
Functions
The ExtendableEvent.waitUntil() method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
The ExtendableEvent.waitUntil() method tells the event dispatcher that work is ongoing.