Results 81 - 100 of 164

PushSubscription

The PushSubscription interface of the Push API provides a subcription's URL endpoint and allows unsubscription from a push service.
API Experimental Interface Push Push API PushSubscription Reference Service Workers

ServiceWorker.onstatechange

An EventListener property called whenever an event of type statechange is fired; it is basically fired anytime the ServiceWorker.state changes.
API onstatechange Property Reference Référence Service Workers ServiceWorker

ServiceWorker.scriptURL

Returns the ServiceWorker serialized script URL defined as part of ServiceWorkerRegistration. Must be on the same origin as the document that registers the ServiceWorker.
API Property Reference Référence scriptURL Service Workers ServiceWorker

ServiceWorker.state

The state read-only property of the ServiceWorker interface returns a string representing the current state of the service worker. It can be one of the following values: installing, installed, activating, activated, or redundant.
API Property Reference Référence Service Workers ServiceWorker state

ServiceWorkerContainer.controller

The controller read-only property of the ServiceWorkerContainer interface returns a ServiceWorker object if its state is activated (the same object returned by ServiceWorkerRegistration.active). This property returns null if the request is a force refresh (Shift + refresh) or if there is no active worker.
API Controller Property Reference Service Workers ServiceWorker ServiceWorkerController

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