devgianlu / PYX-Reloaded

A fork of the original Pretend You're Xyzzy, with a completely rewritten frontend and some major changes on the backend
Apache License 2.0
26 stars 13 forks source link

Add A Service Worker for PWA #92

Closed HopperMCS closed 6 years ago

HopperMCS commented 6 years ago

One potentially useful feature: You know the notifs using Noty.js? Do a check to see if the browser has native notification support, and if not, keep Noty.js notifs as a fallback - this is also a good use to have a service worker supposedly instead of having one just because PWAs require it.

devgianlu commented 6 years ago

We can't implement a Service Worker. It is useful for caching stuff but we don't have to. Using it for notifications would require another protocol other than WebSocket.

Maybe it can be used for more advanced stuff like friends requests or invites which may happen even if the user has the game closed.

@mgagemorgan

Closing for now.