Results 41 - 60 of 123

Push API

The Push API gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is in the foreground, or even currently loaded, on a user agent. This lets developers deliver asynchronous notifications and updates to users that opt in, resulting in better engagement with timely new content.
API Experimental Landing Notifications Push Reference Service Workers

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

Service Worker API

A service worker is an event-driven worker registered against an origin and a path. It takes the form of a JavaScript file that can control the web page/site it is associated with, intercepting and modifying navigation and resource requests, and caching resources in a very granular fashion to give you complete control over how your app behaves in certain situations (the most obvious one being when the network is not available.)
API Landing offline Offline Overview Reference Service Workers Workers

ServiceWorker

The ServiceWorker interface of the ServiceWorker API provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
API Draft Interface Offline offline Service Workers ServiceWorker 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