Background sync help
-
How do I add background sync to my PWA?
I already wrote the function:
self.addEventListener(“sync”, function(event) {
console.log(“background syncing”, event);
if (event.tag === “sync-new-message”) {
console.log(“syncing new messages”);
}
});But when I build with: quasar build -m pwa
function doesn’t exist in service-worker.js -
@credwa which version of quasar you use ?