您正位於 MDN Web Docs 的可編輯版本

以 MDN Web Docs 使用者身分檢視: https://developer.mozilla.org/zh-TW/docs/Web/API/SyncManager

我們的志工尚未將本文翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
您也可以閱讀本文的 English (US) 版本。

The SyncManager interface of the the ServiceWorker API provides an interface for registering and listing sync registrations.

Properties

None.

Methods

SyncManager.register
Create a new sync registration and return a Promise.
SyncManager.getTags
Return a list of developer-defined identifiers for SyncManager registration.

Specifications

Specification Status Comment
Web Background Synchronization
The definition of 'SyncManager' in that specification.
Living Standard Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
SyncManager
ExperimentalNon-standard
Chrome Full support 49Edge Full support 79Firefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android Full support 49Chrome Android Full support 49Firefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android Full support 5.0
getTags
ExperimentalNon-standard
Chrome Full support 49Edge Full support 79Firefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android Full support 49Chrome Android Full support 49Firefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android Full support 5.0
register
ExperimentalNon-standard
Chrome Full support 49Edge Full support 79Firefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android Full support 49Chrome Android Full support 49Firefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android Full support 5.0
Available in workers
ExperimentalNon-standard
Chrome Full support 61
Full support 61
Partial support 49
Notes
Notes Only available in the Window and ServiceWorker global scopes.
Edge Full support 79Firefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android Full support 61
Full support 61
Partial support 49
Notes
Notes Only available in the Window and ServiceWorker global scopes.
Chrome Android Full support 61
Full support 61
Partial support 49
Notes
Notes Only available in the Window and ServiceWorker global scopes.
Firefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android Full support 8.0
Full support 8.0
Partial support 5.0
Notes
Notes Only available in the Window and ServiceWorker global scopes.

Legend

Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
See implementation notes.
See implementation notes.

文件標籤與貢獻者

最近更新: jpmedley,