ServiceWorkerRegistration 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.
Returns a service worker whose state is either
activated. This is initially set to
null. An active worker will control a
ServiceWorkerClient if the client's URL falls within the scope of the registration (the
scope option set when
ServiceWorkerContainer.register is first called.)
Returns a service worker whose state is
installing. This is initially set to
Returns a reference to the
PushManager interface for managing push subscriptions including subscribing, getting an active subscription, and accessing push permission status.
Returns a unique identifier for a service worker registration. This must be on the same origin as the document that registers the
Displays the notification with the requested title.
Unregisters the service worker registration and returns a
Promise. The service worker will finish any ongoing operations before it is unregistered.