Skip to content

How push notification works?

Technical Support
4 2 0
  • 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!

  • 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!

    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?

  • 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 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?

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

Diese Artikel könnten Dich auch interessieren.