googlechromelabs / so-pwa Goto Github PK
View Code? Open in Web Editor NEWA progressive web app to read Stack Overflow content.
Home Page: https://so-pwa.firebaseapp.com/
License: Apache License 2.0
A progressive web app to read Stack Overflow content.
Home Page: https://so-pwa.firebaseapp.com/
License: Apache License 2.0
The live demo currently produces the following errors in the Chrome console:
VM24 workbox-cache-expiration.dev.js:521 Uncaught TypeError: quota_mjs.registerCallback is not a function
Plugin @ VM24 workbox-cache-expiration.dev.js:521
(anonymous) @ service-worker.js:63
(anonymous) @ service-worker.js:65
(index):1 Uncaught (in promise) TypeError: Failed to register a ServiceWorker: ServiceWorker script evaluation failed
This appears to be caused by a recent commit in which purgeOnQuotaError was set to true, causing this failing code path to become active.
After reading https://developers.google.com/web/updates/2018/05/beyond-spa I better grasped so-pwa; Add the help-article to your repo?
Hi, I'm trying to implement periodic background sync on a service worker following the steps in this documentation:
https://web.dev/periodic-background-sync/
I also installed the demo, but so far I haven't seen the periodicsync event fired not even once.
It does work though if I click "sync manually" or if I trigger the tag from devtools. But it doesn't work periodically.
I've read that browsers can decide when to sync, but I'm not able to reproduce the behaviour in any way.
Is there a bug or am I missing something?
A couple of things that could be useful: I checked the status and it's "granted". I checked the active tags and I can see the one I registered.
There are also two questions on StackOverflow (unanswered) about this.
https://stackoverflow.com/questions/66649131/periodic-background-sync-not-working-on-pwa-official-api-demo-broken
https://stackoverflow.com/questions/65096834/periodic-sync-not-fired-in-service-worker
I guess I can't simply call a setInterval inside a service worker because it's going to be shut after a while. For the same reason, I guess that a WebSocket wouldn't work either.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.