SyncEvent

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

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
SyncEvent
SyncEvent() constructor
lastChance
tag