W3cubDocs

/Web APIs

SyncEvent

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The SyncEvent interface 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() Experimental

Creates a new SyncEvent object.

Instance properties

Inherits properties from its ancestor, Event.

SyncEvent.tag Read only Experimental

Returns the developer-defined identifier for this SyncEvent.

SyncEvent.lastChance Read only Experimental

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

Instance methods

Inherits methods from its parent, ExtendableEvent.

None.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
SyncEvent 49 79 No No 36 No 49 49 No 36 No 5.0
SyncEvent 49 79 No No 36 No 49 49 No 36 No 5.0
lastChance 49 79 No No 36 No 49 49 No 36 No 5.0
tag 49 79 No No 36 No 49 49 No 36 No 5.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SyncEvent