Background fetchLimited availability
Background fetch downloads data in the background even when the web page is closed.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–73Not supported
74+Supportedsince Apr 23, 2019
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–73Not supported
74+Supportedsince Apr 24, 2019
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: BackgroundFetchEvent.
Feature detection
JS · check before using
if ("ServiceWorkerRegistration" in globalThis && "backgroundFetch" in ServiceWorkerRegistration.prototype) {
// ServiceWorkerRegistration.backgroundFetch is available
}Sub-features
Support for each part of the feature (31). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| BackgroundFetchEvent | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchEvent.BackgroundFetchEvent | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchEvent.registration | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchManager | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchManager.fetch | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchManager.get | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchManager.getIds | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRecord | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRecord.request | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRecord.responseReady | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.abort | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.downloadTotal | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.downloaded | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.failureReason | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.id | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.match | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.matchAll | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.progress_event | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.recordsAvailable | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
Show 11 more
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| BackgroundFetchRegistration.result | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.uploadTotal | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchRegistration.uploaded | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchUpdateUIEvent | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchUpdateUIEvent.BackgroundFetchUpdateUIEvent | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| BackgroundFetchUpdateUIEvent.updateUI | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| ServiceWorkerGlobalScope.backgroundfetchabort_event | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| ServiceWorkerGlobalScope.backgroundfetchclick_event | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| ServiceWorkerGlobalScope.backgroundfetchfail_event | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| ServiceWorkerGlobalScope.backgroundfetchsuccess_event | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |
| ServiceWorkerRegistration.backgroundFetch | 74 | 79 | ✕ | ✕ | 74 | ✕ | ✕ |