Search code examples
google-chromeservice-workerbackground-sync

How to manually trigger a background sync (for testing)?


In Chrome, is there any way to manually trigger a background sync for testing/development purposes?


Solution

  • You can now use a force sync in developer tools in Chrome on your service worker.

    Go Dev Tools --> Application --> Service Worker and you will see Sync button and next to it a space to write commands.