Interface ISDKServiceWorkerConfiguration

interface ISDKServiceWorkerConfiguration {
    automaticallyRegister?: boolean;
    registration?: Promise<ServiceWorkerRegistration>;
    waitTimeout?: number;
}

Properties

automaticallyRegister?: boolean

Whether Batch should automatically register its service worker (default: true).

registration?: Promise<ServiceWorkerRegistration>

Allows you to have Batch use a specific Service Worker registration. (requires automaticallyRegister to be false).

waitTimeout?: number

Maximum waiting time for your Service Worker to be ready (default: 10 seconds).