- Issue created by @joshahubbers
- Merge request !103Issue #3481782 by joshahubbers: Firebase notifications → (Open) created by joshahubbers
- 🇳🇱Netherlands joshahubbers
🐛 Upload app icon results in error Active is included in this patch
- 🇳🇱Netherlands joshahubbers
Back to working on this... please mind this is work in progress. F.e. in the current patch we show the token of the browser in the frontend to allow us to easily send test messages. ;-) Just so you know the current status.
- 🇳🇱Netherlands joshahubbers
I removed the module from this commit, as I think you mostly want to customize what exactly happens there, and not everything is generic enough.
I add the module as zip for reference.
Example module →So what this patch does:
- Add hook to expand the service worker
What it does not do (see how to do it in the example module):
- Add new submodule for the notifications (see zip file for an example)
- The firebase service worker has to come from a specific url: /firebase-messaging-sw.js. The url is altered with a route to serve the service worker from this location.
- When a user accepts the push messages, the token is saved to the database.