Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    How push notification works?

    Pianificato Fissato Bloccato Spostato Uncategorized
    11 Post 3 Autori 60 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
      julian@community.nodebb.org @ska@community.nodebb.org
      ultima modifica di

      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 Risposta Ultima Risposta Rispondi Cita 0
      • S Questo utente è esterno a questo forum
        ska@community.nodebb.org
        ultima modifica di

        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 Risposta Ultima Risposta Rispondi Cita 0
        • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
          julian@community.nodebb.org @ska@community.nodebb.org
          ultima modifica di

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

          1 Risposta Ultima Risposta Rispondi Cita 0
          • S Questo utente è esterno a questo forum
            ska@community.nodebb.org
            ultima modifica di

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

            1 Risposta Ultima Risposta Rispondi Cita 0
            • baris@community.nodebb.orgB Questo utente è esterno a questo forum
              baris@community.nodebb.org
              ultima modifica di

              ska I published web-push@0.7.5, let me know if that works on peace theme.

              S 1 Risposta Ultima Risposta Rispondi Cita 0
              • S Questo utente è esterno a questo forum
                ska@community.nodebb.org @baris@community.nodebb.org
                ultima modifica di

                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 Risposta Ultima Risposta Rispondi Cita 0
                • S Questo utente è esterno a questo forum
                  ska@community.nodebb.org
                  ultima modifica di

                  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 Risposta Ultima Risposta Rispondi Cita 0
                  • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                    julian@community.nodebb.org @ska@community.nodebb.org
                    ultima modifica di

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

                    1 Risposta Ultima Risposta Rispondi Cita 0
                    • S Questo utente è esterno a questo forum
                      ska@community.nodebb.org
                      ultima modifica di

                      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 Risposta Ultima Risposta Rispondi Cita 0
                      • julian@community.nodebb.orgJ Questo utente è esterno a questo forum
                        julian@community.nodebb.org @ska@community.nodebb.org
                        ultima modifica di

                        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 Risposta Ultima Risposta Rispondi Cita 0
                        • Primo post
                          Ultimo post