Periodic background syncLimited availability
The periodic background synchronization API fires a recurring periodicsync event in a service worker. You can use this to update data in the background at regular intervals.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–79Not supported
80+Supportedsince Feb 4, 2020
Current: 155Edge
12–79Not supported
80+Supportedsince Feb 7, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–79Not supported
80+Supportedsince Feb 4, 2020
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: PeriodicSyncEvent.
Feature detection
JS · check before using
if ("PeriodicSyncEvent" in globalThis) {
// PeriodicSyncEvent is available
} else {
// load a polyfill or use a fallback
}Sub-features
Support for each part of the feature (9). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| PeriodicSyncEvent | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PeriodicSyncEvent.PeriodicSyncEvent | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PeriodicSyncEvent.tag | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PeriodicSyncManager | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PeriodicSyncManager.getTags | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PeriodicSyncManager.register | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| PeriodicSyncManager.unregister | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| ServiceWorkerGlobalScope.periodicsync_event | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |
| ServiceWorkerRegistration.periodicSync | 80 | 80 | ✕ | ✕ | 80 | ✕ | ✕ |