PushSubscriptiontilauksen
PushSubscription is a representation of a user's subscription to push notifications in the Web Push API. It is created by calling subscribe on a PushManager exposed by a service worker, typically after the user has granted permission for notifications. A PushSubscription describes how the push service should deliver messages to the user's device or browser.
A subscription includes an endpoint URL that the application server uses to send push messages, an optional
To deliver a notification, the server sends a message to the subscription's endpoint using the Web Push
Clients can manage subscriptions by calling unsubscribe() on the PushSubscription object, and the server should remove
Usage considerations: Push subscriptions are browser- and device-specific; users can revoke permission; endpoints may change; regard