Skip to content

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 -

public/dynamicsWorker.js

Clone this wiki locally