The Web Push Service
The WebPush object requires a HTTP Client and an Extension Manager.
The service is now ready to send Notifications to the Subscriptions. The StatusReport object that is returned is explained here.
In this example, we load the Subscription object from a string, but usually to retrieve the Subscription objects from a database or a dedicated storage.
Last updated