Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Darkscribes Community

  1. Home
  2. Technical Support
  3. How push notification works?

How push notification works?

Scheduled Pinned Locked Moved Technical Support
11 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S This user is from outside of this forum
    S This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

    hello,
    I can't quite figure out how push notifications work since I can't see/activate them even here at community.nodebb.org.

    I am using NodeBB 4.4.4.

    I see that in the settings there is and active "Push Notifications (via Push API) but nowhere and nowhere do I ever get a suggestion to enable browser notifications.

    Is there something I don't understand that needs to be enabled that I don't see or do they work differently than I imagine?

    Thanks!

    julian@community.nodebb.orgJ 1 Reply Last reply
    0
    • S [email protected]

      hello,
      I can't quite figure out how push notifications work since I can't see/activate them even here at community.nodebb.org.

      I am using NodeBB 4.4.4.

      I see that in the settings there is and active "Push Notifications (via Push API) but nowhere and nowhere do I ever get a suggestion to enable browser notifications.

      Is there something I don't understand that needs to be enabled that I don't see or do they work differently than I imagine?

      Thanks!

      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      ska there should be a user setting page for push notifications, and they are activated on a per-device level.

      Does the toggle activate for you?

      1 Reply Last reply
      0
      • S This user is from outside of this forum
        S This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        julian thanks for the answer.

        I see in F12 console this error:

        service-worker.js:31 Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://citiverse.it/assets/plugins/nodebb-plugin-web-push/static/web-push.js' failed to load.
            at service-worker.js:31:1
        (anonymous) @ service-worker.js:31
        An unknown error occurred when fetching the script.
        

        But the web-push plugin is active and I even tried uninstalling -> deleting it and reinstalling it.

        on NodeBB I see:

        2025-07-01T12:09:00.698Z [4567/47620] - info: [plugins/web-push] VAPID keys OK.
        2025-07-01T12:09:00.765Z [4567/47620] - info: [api] Adding 8 route(s) to `api/v3/plugins`
        2025-07-01T12:09:00.799Z [4567/47620] - info: [router] Routes added
        2025-07-01T12:09:00.843Z [4567/47620] - info: 🎉 NodeBB Ready
        2025-07-01T12:09:00.845Z [4567/47620] - info: 🤝 Enabling 'trust proxy'
        2025-07-01T12:09:00.857Z [4567/47620] - info: 📡 NodeBB is now listening on: 0.0.0.0:4567
        2025-07-01T12:09:00.858Z [4567/47620] - info: 🔗 Canonical URL: https://citiverse.it
        

        edit: I understand that the problem is with the “PEACE” theme.

        Do you know if there is a patch for it?

        julian@community.nodebb.orgJ 1 Reply Last reply
        0
        • S [email protected]

          julian thanks for the answer.

          I see in F12 console this error:

          service-worker.js:31 Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://citiverse.it/assets/plugins/nodebb-plugin-web-push/static/web-push.js' failed to load.
              at service-worker.js:31:1
          (anonymous) @ service-worker.js:31
          An unknown error occurred when fetching the script.
          

          But the web-push plugin is active and I even tried uninstalling -> deleting it and reinstalling it.

          on NodeBB I see:

          2025-07-01T12:09:00.698Z [4567/47620] - info: [plugins/web-push] VAPID keys OK.
          2025-07-01T12:09:00.765Z [4567/47620] - info: [api] Adding 8 route(s) to `api/v3/plugins`
          2025-07-01T12:09:00.799Z [4567/47620] - info: [router] Routes added
          2025-07-01T12:09:00.843Z [4567/47620] - info: 🎉 NodeBB Ready
          2025-07-01T12:09:00.845Z [4567/47620] - info: 🤝 Enabling 'trust proxy'
          2025-07-01T12:09:00.857Z [4567/47620] - info: 📡 NodeBB is now listening on: 0.0.0.0:4567
          2025-07-01T12:09:00.858Z [4567/47620] - info: 🔗 Canonical URL: https://citiverse.it
          

          edit: I understand that the problem is with the “PEACE” theme.

          Do you know if there is a patch for it?

          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          ska the push notifications are now working again on the regular theme?

          1 Reply Last reply
          0
          • S This user is from outside of this forum
            S This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            julian yep on "Harmony" works but It seems not to go only with the “Peace” theme.

            1 Reply Last reply
            0
            • baris@community.nodebb.orgB This user is from outside of this forum
              baris@community.nodebb.orgB This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              ska I published [email protected], let me know if that works on peace theme.

              S 1 Reply Last reply
              0
              • baris@community.nodebb.orgB [email protected]

                ska I published [email protected], let me know if that works on peace theme.

                S This user is from outside of this forum
                S This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                baris Thank you it seems to be working now.

                I still have problems on Brave but maybe it's just a cache issue because on Firefox and Edge it's not giving me problems, I'll try again later from another computer.

                1 Reply Last reply
                0
                • S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #8

                  thanks baris and julian it seems works now.

                  I went back to the “original” theme because actually the ntfy push has the exact same problem, if I activate the PEACE theme the ntfy notifications don't go.

                  Can you tell me who is possible to tag for this plugin?

                  Thank you.

                  julian@community.nodebb.orgJ 1 Reply Last reply
                  0
                  • S [email protected]

                    thanks baris and julian it seems works now.

                    I went back to the “original” theme because actually the ntfy push has the exact same problem, if I activate the PEACE theme the ntfy notifications don't go.

                    Can you tell me who is possible to tag for this plugin?

                    Thank you.

                    julian@community.nodebb.orgJ This user is from outside of this forum
                    julian@community.nodebb.orgJ This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #9

                    ska me, but I have deprecated that plugin in favour of web-push

                    1 Reply Last reply
                    0
                    • S This user is from outside of this forum
                      S This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #10

                      julian ah ok, I didn't realize that and didn't know that.

                      So it's basically abandoned and there will be no particular updates I guess, is it recommended to leave only web-push?

                      julian@community.nodebb.orgJ 1 Reply Last reply
                      0
                      • S [email protected]

                        julian ah ok, I didn't realize that and didn't know that.

                        So it's basically abandoned and there will be no particular updates I guess, is it recommended to leave only web-push?

                        julian@community.nodebb.orgJ This user is from outside of this forum
                        julian@community.nodebb.orgJ This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #11

                        ska correct, since web-push relies on more modern browser supported technology and doesn't require a third-party service (in this case, ntfy.sh)

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups