Firebase notifications

Created on 18 October 2024, 2 months ago

Problem/Motivation

We want to add Google Firebase notifications to the app. So I am creating this issue to make the code available for anyone to fiddle around with. It's work in progress, so don't be harsh please ;-)

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇳🇱Netherlands joshahubbers

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @joshahubbers
  • Pipeline finished with Success
    2 months ago
    Total: 6520s
    #313951
  • Pipeline finished with Canceled
    2 months ago
    Total: 106s
    #314386
  • Pipeline finished with Canceled
    2 months ago
    Total: 151s
    #314387
  • Pipeline finished with Success
    2 months ago
    Total: 976s
    #314389
  • Pipeline finished with Success
    2 months ago
    Total: 425s
    #314400
  • Pipeline finished with Success
    2 months ago
    Total: 231s
    #314403
  • Pipeline finished with Success
    about 2 months ago
    Total: 164s
    #315628
  • Pipeline finished with Success
    about 2 months ago
    Total: 150s
    #315633
  • 🇳🇱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.

  • Pipeline finished with Success
    21 days ago
    Total: 168s
    #351775
  • Pipeline finished with Success
    20 days ago
    Total: 158s
    #353177
  • Pipeline finished with Success
    19 days ago
    Total: 193s
    #353974
  • 🇳🇱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.
Production build 0.71.5 2024