-
Notifications
You must be signed in to change notification settings - Fork 0
Dynamics Service Worker
Karan Gupta edited this page Apr 8, 2023
·
2 revisions
The Service worker is responsible for fetching the telemetry data available in Indexed DB and dispatching it to the required system. The vanilla implementation only prints the telemetry on the console and sends it to a REST API but any further integrations can can be built by customizing the code as per requirements. The service worker uses localForage library for interacting with Indexed DB.
Worker file should be placed inside the public directory of consuming react application -
If you like what you see then please consider supporting us by adding a star