Investigating the use of a service worker #247
erikyo
started this conversation in
REST Controller
Replies: 1 comment 3 replies
-
Is this just for testing, or for production? The problem I see with doing that for the end product is figuring out how that fits into the general WordPress system. It's doesn't function offline, so why should the notification system? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to propose using a service worker to filter/intercept all requests to the api, that way notifications could even work offline or send system messages
https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API
https://developer.chrome.com/docs/workbox/service-worker-overview/
Beta Was this translation helpful? Give feedback.
All reactions