PacemServiceWorkerProxyElement
manages the registration of the ServiceWorker
and keeps track of the relevant ServiceWorkerRegistration
to exploit its functionalities.
Here an example for the utilization:
<pacem-serviceworker-proxy id="sw" src="/sw.js" on-register="console.log($event.detail)" on-subscribe="console.log($event.detail)"></pacem-serviceworker-proxy>
In the following snippet it is shown how to simply declaratively subscribe/unsubscribe to Push Notifications.
Don't worry: no notifications will actually be sent.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.