SyncEvent

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Note: This feature is only available in Service Workers.

The SyncEvent interface of the Background Synchronization API represents a sync action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.

This interface inherits from the ExtendableEvent interface.

Event ExtendableEvent SyncEvent

Constructor

SyncEvent()

Creates a new SyncEvent object.

Instance properties

Inherits properties from its parent, ExtendableEvent and Event.

SyncEvent.tag Read only

Returns the developer-defined identifier for this SyncEvent.

SyncEvent.lastChance Read only

Returns true if the user agent will not make further synchronization attempts after the current attempt.

Instance methods

Inherits methods from its parent, ExtendableEvent and Event.

None.

Specifications

Specification
Web Background Synchronization
# sync-event

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
SyncEvent
SyncEvent() constructor
lastChance
tag

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.