im working on a web-push notification system and I need to modify this file public/src/service-worker.js using a plugin. How can I achieve it?
K
k1r0s
@k1r0s
Posts
-
plugin development, modify service-worker.js -
[nodebb-plugin-calendar] Fully featured calendar plugin for NodeBB - Testers neededI would like to use the calendar on v3 but upgrading plugins for nodebb seems a pain in the ass, so I had to downgrade my nodebb instance to v2 with all my plugins to keep the calendar going..
-
plugin development, modify service-worker.jsUpdate: good news. I'm able to receive notifications. Now dealing with the basics which doesn't have anything to do with the wanted functionality (nodebb stuff.. sending the registration to the core, storing it in the database, triggering push notifications based on nodebb notifications)
Will post any updates here
-
plugin development, modify service-worker.jsThe plugin is now being tested in production.
Chrome works as expected (push notifications should behave as forum notifications):
- Forum Icon is displayed in the notification
- Text containing the event that triggered the notification is displayed
- Clicking in the notification opens the browser at the specific path
Firefox notifications only work on nightly versions.