Integrating Batch Service Worker

Standard setup

First, download the SDK ZIP from the download page. Then, extract it and upload the batchsdk-worker-loader.js file to the root of your website.

The file must be served in HTTPS on the same domain as your site (not on a CDN) and have a text/javascript Content-Type. It must NOT have any Content-Security-Policy header set on the worker's file.

If your website is available at the https://mywebsite.com, the service worker needs to be accessible at the following address: https://mywebsite.com/batchsdk-worker-loader.js

Alternative integrations