Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The SyncEvent()
constructor creates a new SyncEvent
object.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The SyncEvent()
constructor creates a new SyncEvent
object.
js
new SyncEvent(type, options)
type
A string with the name of the event. It is case-sensitive and browsers always set it to sync
.
options
An object that, in addition to the properties defined in ExtendableEvent()
, can have the following properties:
tag
A developer-defined unique identifier for this SyncEvent
.
lastChance
Optional
A boolean value indicating that the user agent will not make further synchronization attempts after the current attempt. It defaults to false
.
A new SyncEvent
object.
Specification |
---|
Web Background Synchronization # dom-syncevent-syncevent |
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 |
© 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/SyncEvent