Results 61 - 80 of 123

ServiceWorkerGlobalScope

The ServiceWorkerGlobalScope interface of the ServiceWorker API represents the global execution context of a service worker.
API Draft Interface Offline offline Reference Service Workers ServiceWorkerGlobalScope Workers

ServiceWorkerGlobalScope.onactivate

The onactivate property of the ServiceWorkerGlobalScope interface is an event handler fired whenever an activate event occurs (when the service worker activates). This happens after installation, when the page to be controlled by the service worker refreshes.
API onactivate Property Reference Service ServiceWorker ServiceWorkerGlobalScope Workers

ServiceWorkerGlobalScope.onfetch

The onfetch property of the ServiceWorkerGlobalScope interface is an event handler fired whenever a fetch event occurs (usually when the ServiceWorkerGlobalScope.fetch method is called.)
API onfetch Property Reference Service ServiceWorker ServiceWorkerGlobalScope Workers

ServiceWorkerGlobalScope.onmessage

The ServiceWorkerGlobalScope.onmessage event of the ServiceWorkerGlobalScope interface is called whenever incoming messages are received.
API onMessage onmessage Property Reference Service ServiceWorker ServiceWorkerGlobalScope Workers

ServiceWorkerGlobalScope.onpush

The ServiceWorkerGlobalScope.onpush event of the ServiceWorkerGlobalScope interface is fired whenever a push message is received by a service worker via a push server.
API onpush Property Push Reference Service Workers ServiceWorker ServiceWorkerGlobalScope

ServiceWorkerGlobalScope.onpushsubscriptionchange

The ServiceWorkerGlobalScope.onpushsubscriptionchange event of the ServiceWorkerGlobalScope interface is fired whenever a push subscription has been invalidated (or is about to become so). This offers an opportunity to resubscribe in order to continue receiving push messages, if desired. This might happen if, for example, the push service sets an expiration time a subscription.
API NeedsExample onpushsubscriptionchange Property Push Reference Service Workers ServiceWorkerGlobalScope

ServiceWorkerMessageEvent

The ServiceWorkerMessageEvent interface of the ServiceWorker API contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker.
API Experimental Interface offline Offline Référence Service Workers ServiceWorkerMessageEvent Workers

ServiceWorkerRegistration

The ServiceWorkerRegistion interface of the ServiceWorker API represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
API Draft Interface Offline offline Reference Service Workers ServiceWorkerRegistration Workers

ServiceWorkerRegistration.active

The active property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
active API Property Reference Référence Service Workers ServiceWorkerRegistration

ServiceWorkerRegistration.getNotifications()

The getNotifications() method of the ServiceWorkerRegistration interface returns a list of the notifications that have been fired from the current service worker.
API Experimental getNotifications Method Notifications Reference Service Workers ServiceWorker ServiceWorkerRegistration

ServiceWorkerRegistration.installing

The installing property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is installing. This property is initially set to null.
API Installing Property Reference Référence Service Workers ServiceWorkerRegistration