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

不想你离开。 提交于 2019-12-11 04:28:18

问题


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


回答1:


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.




回答2:


There's no way to do this in Chrome right now (April 2016). Follow this bug for updates.



来源:https://stackoverflow.com/questions/36718224/how-to-manually-trigger-a-background-sync-for-testing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!