From 31b61a78f7d7475d9ba453b854aa5441af9977b6 Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Mon, 11 Dec 2023 11:00:49 +1100 Subject: [PATCH] Introduce 'push subscription owner' concept --- index.html | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 9fbeca9..3fd4de3 100644 --- a/index.html +++ b/index.html @@ -63,9 +63,9 @@ a push service. An application server can send a push message at any time, even when a web application or user agent is inactive. The push service ensures reliable and efficient delivery to the user agent. Push messages are - delivered to a Service Worker that runs in the origin of the web application, which - can use the information in the message to update local state or display a notification to - the user. + delivered to a [=push subscription owner=] that runs in the origin of the web application, + which can use the information in the message to update local state or display a + notification to the user.

This specification is designed for use with the web push protocol, which describes @@ -172,9 +172,16 @@

A push subscription is a message delivery context established between the user agent and the push service on behalf of a web application. Each - push subscription is associated with a service worker registration and a + push subscription is associated with a [=push subscription owner=]. +

+

+ A push subscription owner refers to a service worker registration. A service worker registration has at most one push subscription.

+

+ Future updates to this specification could expand the definition of a [=push subscription + owner=] to include other types, broadening the range of possible implementations. +

A push subscription has an associated push endpoint. It MUST be the absolute URL exposed by the push service where the application server can @@ -431,13 +438,13 @@

  • the push service delivers the message to a specific user agent, identifying the push endpoint in the message;
  • -
  • the user agent identifies the intended Service Worker and activates it as - necessary, and delivers the push message to the Service Worker. +
  • the user agent identifies the intended [=push subscription owner=] and activates + it as necessary, and delivers the push message to the [=push subscription owner=].
  • - This overall framework allows application servers to activate a Service - Worker in response to events at the application server. Information about those + This overall framework allows application servers to activate a [=push subscription + owner=] in response to events at the application server. Information about those events can be included in the push message, which allows the web application to react appropriately to those events, potentially without needing to initiate network requests.