如何手动触发后台同步(用于测试)? [英] How to manually trigger a background sync (for testing)?

查看:74
本文介绍了如何手动触发后台同步(用于测试)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome中,是否有任何方法可以出于测试/开发目的手动触发后台同步? /p>

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

推荐答案

您现在可以在服务工作者的Chrome浏览器的开发人员工具中使用强制同步.

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

Go开发工具->应用程序-> Service Worker,您将看到同步"按钮及其旁边的用于编写命令的空间.

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

这篇关于如何手动触发后台同步(用于测试)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆