Periodic Background Sync
Probing…Periodic Background Sync is a web platform capability in the Communication & Background category. Periodically refresh content in the background. Supported in Chromium 80+; not available in Firefox and Safari. Requires a secure context (HTTPS or localhost) and the site to be installed as an app.
Permission periodic-background-sync: unknown
Try it
Loading demo…
Code
const status = await navigator.permissions.query({
name: 'periodic-background-sync',
})
if (status.state === 'granted') {
const reg = await navigator.serviceWorker.ready
await reg.periodicSync.register('demo-periodic', {
minInterval: 24 * 60 * 60 * 1000,
})
}Browser support
Frequently asked questions
Which browsers support Periodic Background Sync?
Supported in Chromium 80+; not available in Firefox and Safari.
Does Periodic Background Sync require HTTPS?
Yes. Periodic Background Sync needs a secure context, so it only works over HTTPS (or on localhost during development).
What is Periodic Background Sync used for?
Periodically refresh content in the background.
Can I try Periodic Background Sync in my browser?
Yes. shwcs.net runs a live Periodic Background Sync demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.