Closed HopperMCS closed 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.
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.