Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The PeriodicSyncEvent
interface of the Web Periodic Background Synchronization API
provides a way to run tasks in the service worker with network connectivity.
An instance of this event is passed to the periodicsync
handler. This happens periodically, at an interval greater than or equal to that set in the PeriodicSyncManager.register()
method. Other implementation-specific factors such as the user's engagement with the site decide the actual interval.