Skip to content
  • Kategorien
  • World
  • Aktuell
  • Tags
  • Beliebt
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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
linux-nerds.org

linux-nerds.org

  1. Übersicht
  2. NodeBB Development
  3. Native Push Notifications Support for NodeBB

Native Push Notifications Support for NodeBB

Geplant Angeheftet Gesperrt Verschoben NodeBB Development
pushnotificationodebbnotificationspushapi
45 Beiträge 8 Kommentatoren 72 Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • julian@community.nodebb.orgJ julian@community.nodebb.org

    phenomlab glad to hear you found it 😄

    For those interested in updating, you can just grab the latest commit from activitypub branch or perhaps the more the specific commit:

    git fetch
    git checkout activitypub    # if you're not already on activitypub branch
    git reset --hard 86f624f8172fb96fbd3c83683affd8814e8b5156`
    
    phenomlab@community.nodebb.orgP This user is from outside of this forum
    phenomlab@community.nodebb.orgP This user is from outside of this forum
    phenomlab@community.nodebb.org
    schrieb am zuletzt editiert von
    #16

    julian I'm using the GIT link you provided to install. Plugin installs fine, but cannot get it to send any notification - even on my mobile device which works fine for NodeBB?

    julian@community.nodebb.orgJ 1 Antwort Letzte Antwort
    0
    • phenomlab@community.nodebb.orgP phenomlab@community.nodebb.org

      julian I'm using the GIT link you provided to install. Plugin installs fine, but cannot get it to send any notification - even on my mobile device which works fine for NodeBB?

      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.orgJ This user is from outside of this forum
      julian@community.nodebb.org
      schrieb am zuletzt editiert von
      #17

      phenomlab There's not terribly much to configure, just make sure that when you start NodeBB, that you see the output info: [plugins/web-push] VAPID keys OK.

      That's how the messages are encoded to be sent to the corresponding browser push endpoints.

      Other than that make sure the user has toggled push notifications on in their settings and allowed notifications for the site.

      On Windows, you have to specifically also allow your browser access to send notifications to the user.

      phenomlab@community.nodebb.orgP 1 Antwort Letzte Antwort
      0
      • julian@community.nodebb.orgJ julian@community.nodebb.org

        phenomlab There's not terribly much to configure, just make sure that when you start NodeBB, that you see the output info: [plugins/web-push] VAPID keys OK.

        That's how the messages are encoded to be sent to the corresponding browser push endpoints.

        Other than that make sure the user has toggled push notifications on in their settings and allowed notifications for the site.

        On Windows, you have to specifically also allow your browser access to send notifications to the user.

        phenomlab@community.nodebb.orgP This user is from outside of this forum
        phenomlab@community.nodebb.orgP This user is from outside of this forum
        phenomlab@community.nodebb.org
        schrieb am zuletzt editiert von
        #18

        julian Yes, I've done that, but can't seem to make it work.

        1 Antwort Letzte Antwort
        0
        • julian@community.nodebb.orgJ julian@community.nodebb.org

          Our relationship with push notifications has been rather circuitous...

          1. First Andrew (psychobunny) tried plain desktop notifications via the Notification API (that's the desktop notifications plugin), but notification delivery stopped when you closed your browser.
          2. Then I wrote the PushBullet plugin, but they went from free to paid and that went out the window
          3. Around that time I wrote the Firebase plugin, which was a dead end because there was no iOS support.
          4. I then wrote the ntfy plugin, which works really well, but does rely on a freemium third-party service and app (written by @binwiederhier@discuss.ntfy.sh)

          Thanks to some recent discussion from crazycells and bh4-tech, I learned that the Push API had reached general availability across most modern browsers. In fact, this actually happened over a year ago, so compatibility should be even better.

          So I set about working on yet another push notifications plugin, hopefully for the last time, and this time using the native Push API on the client-side.

          To enable them, simply navigate over to the "Push Notifications" menu item in your user profile, and flip the switch.

          6da06989-f902-492b-866f-14c39b34a9ca-image.png

          So, let's dogfood! I de-activated the ntfy plugin on this site and activated the web-push plugin so you can try it out right now.

          The plugin is in the proof-of-concept phase, so there might (read: most definitely will be) issues. Please let me know any you find here.

          baris@community.nodebb.orgB This user is from outside of this forum
          baris@community.nodebb.orgB This user is from outside of this forum
          baris@community.nodebb.org
          schrieb am zuletzt editiert von
          #19

          On windows you need to enable notifications in the OS settings, it wasn't working without that for me.

          image.png

          Link Preview Image
          phenomlab@community.nodebb.orgP 1 Antwort Letzte Antwort
          0
          • baris@community.nodebb.orgB baris@community.nodebb.org

            On windows you need to enable notifications in the OS settings, it wasn't working without that for me.

            image.png

            Link Preview Image
            phenomlab@community.nodebb.orgP This user is from outside of this forum
            phenomlab@community.nodebb.orgP This user is from outside of this forum
            phenomlab@community.nodebb.org
            schrieb am zuletzt editiert von
            #20

            baris thanks. That setting is already on for me.

            julian@community.nodebb.orgJ 1 Antwort Letzte Antwort
            0
            • phenomlab@community.nodebb.orgP phenomlab@community.nodebb.org

              baris thanks. That setting is already on for me.

              julian@community.nodebb.orgJ This user is from outside of this forum
              julian@community.nodebb.orgJ This user is from outside of this forum
              julian@community.nodebb.org
              schrieb am zuletzt editiert von
              #21

              phenomlab you need to be on v4.

              Alternatively I believe you can update the service worker manually with the one from the ActivityPub branch.

              phenomlab@community.nodebb.orgP 1 Antwort Letzte Antwort
              0
              • julian@community.nodebb.orgJ julian@community.nodebb.org

                phenomlab you need to be on v4.

                Alternatively I believe you can update the service worker manually with the one from the ActivityPub branch.

                phenomlab@community.nodebb.orgP This user is from outside of this forum
                phenomlab@community.nodebb.orgP This user is from outside of this forum
                phenomlab@community.nodebb.org
                schrieb am zuletzt editiert von
                #22

                julian thanks. I'll check this later.

                1 Antwort Letzte Antwort
                0
                • julian@community.nodebb.orgJ julian@community.nodebb.org

                  The plugin also successfully removes notifications if they're no longer relevant (e.g. queued posts that have already been handled), and merges notification content just like it does in-app:

                  22b1cb96-3763-48e9-b890-3f8443ace075-image.png

                  Link Preview Image
                  julian@community.nodebb.orgJ This user is from outside of this forum
                  julian@community.nodebb.orgJ This user is from outside of this forum
                  julian@community.nodebb.org
                  schrieb am zuletzt editiert von
                  #23

                  v0.7.0 of the Push Notification plugin has been released

                  • Notification related service worker code that was initially included in v4 core is now served by the web-push plugin directly, allowing v3.x compatibility.
                  • Compatibility updated from v4 to v3.10.x
                    • Meaning if you want to try this out on your existing NodeBB, you can do so by either waiting for v3.10.0, or by updating to the latest commit on the develop branch
                  phenomlab@community.nodebb.orgP dave1904@community.nodebb.orgD 2 Antworten Letzte Antwort
                  0
                  • julian@community.nodebb.orgJ julian@community.nodebb.org

                    v0.7.0 of the Push Notification plugin has been released

                    • Notification related service worker code that was initially included in v4 core is now served by the web-push plugin directly, allowing v3.x compatibility.
                    • Compatibility updated from v4 to v3.10.x
                      • Meaning if you want to try this out on your existing NodeBB, you can do so by either waiting for v3.10.0, or by updating to the latest commit on the develop branch
                    phenomlab@community.nodebb.orgP This user is from outside of this forum
                    phenomlab@community.nodebb.orgP This user is from outside of this forum
                    phenomlab@community.nodebb.org
                    schrieb am zuletzt editiert von
                    #24

                    julian when does 3.10 come out? 😁

                    julian@community.nodebb.orgJ 1 Antwort Letzte Antwort
                    0
                    • phenomlab@community.nodebb.orgP phenomlab@community.nodebb.org

                      julian when does 3.10 come out? 😁

                      julian@community.nodebb.orgJ This user is from outside of this forum
                      julian@community.nodebb.orgJ This user is from outside of this forum
                      julian@community.nodebb.org
                      schrieb am zuletzt editiert von
                      #25

                      phenomlab Right now 😆

                      phenomlab@community.nodebb.orgP 1 Antwort Letzte Antwort
                      0
                      • julian@community.nodebb.orgJ julian@community.nodebb.org

                        phenomlab Right now 😆

                        phenomlab@community.nodebb.orgP This user is from outside of this forum
                        phenomlab@community.nodebb.orgP This user is from outside of this forum
                        phenomlab@community.nodebb.org
                        schrieb am zuletzt editiert von
                        #26

                        julian Hmm - still not working for me... 😞

                        EDIT - works on my Android phone, but not on my PC - guessing it's likely security software.
                        EDIT 2 - suspicion confirmed. It's caused by NordVPN. If running, the push notification doesn't work - if disabled, it works fine.

                        julian@community.nodebb.orgJ 1 Antwort Letzte Antwort
                        0
                        • phenomlab@community.nodebb.orgP phenomlab@community.nodebb.org

                          julian Hmm - still not working for me... 😞

                          EDIT - works on my Android phone, but not on my PC - guessing it's likely security software.
                          EDIT 2 - suspicion confirmed. It's caused by NordVPN. If running, the push notification doesn't work - if disabled, it works fine.

                          julian@community.nodebb.orgJ This user is from outside of this forum
                          julian@community.nodebb.orgJ This user is from outside of this forum
                          julian@community.nodebb.org
                          schrieb am zuletzt editiert von
                          #27

                          phenomlab said in Native Push Notifications Support for NodeBB:
                          > NordVPN

                          Thanks for closing the loop! Kind of annoying that NordVPN blocks them...

                          phenomlab@community.nodebb.orgP 1 Antwort Letzte Antwort
                          0
                          • julian@community.nodebb.orgJ julian@community.nodebb.org

                            phenomlab said in Native Push Notifications Support for NodeBB:
                            > NordVPN

                            Thanks for closing the loop! Kind of annoying that NordVPN blocks them...

                            phenomlab@community.nodebb.orgP This user is from outside of this forum
                            phenomlab@community.nodebb.orgP This user is from outside of this forum
                            phenomlab@community.nodebb.org
                            schrieb am zuletzt editiert von
                            #28

                            julian Yes, very, and their support isn't up to much either in the sense of wanting to fix it. I've had to change my VPN usage from machine level (which I prefer) to browser level - as long as the internet traffic is secured, that's good enough for the time being.

                            julian@community.nodebb.orgJ 1 Antwort Letzte Antwort
                            0
                            • phenomlab@community.nodebb.orgP phenomlab@community.nodebb.org

                              julian Yes, very, and their support isn't up to much either in the sense of wanting to fix it. I've had to change my VPN usage from machine level (which I prefer) to browser level - as long as the internet traffic is secured, that's good enough for the time being.

                              julian@community.nodebb.orgJ This user is from outside of this forum
                              julian@community.nodebb.orgJ This user is from outside of this forum
                              julian@community.nodebb.org
                              schrieb am zuletzt editiert von
                              #29

                              phenomlab curious, was it also blocking push notifications from this site as well?

                              phenomlab@community.nodebb.orgP 1 Antwort Letzte Antwort
                              0
                              • julian@community.nodebb.orgJ julian@community.nodebb.org

                                phenomlab curious, was it also blocking push notifications from this site as well?

                                phenomlab@community.nodebb.orgP This user is from outside of this forum
                                phenomlab@community.nodebb.orgP This user is from outside of this forum
                                phenomlab@community.nodebb.org
                                schrieb am zuletzt editiert von
                                #30

                                julian yes

                                1 Antwort Letzte Antwort
                                0
                                • julian@community.nodebb.orgJ julian@community.nodebb.org

                                  v0.7.0 of the Push Notification plugin has been released

                                  • Notification related service worker code that was initially included in v4 core is now served by the web-push plugin directly, allowing v3.x compatibility.
                                  • Compatibility updated from v4 to v3.10.x
                                    • Meaning if you want to try this out on your existing NodeBB, you can do so by either waiting for v3.10.0, or by updating to the latest commit on the develop branch
                                  dave1904@community.nodebb.orgD This user is from outside of this forum
                                  dave1904@community.nodebb.orgD This user is from outside of this forum
                                  dave1904@community.nodebb.org
                                  schrieb am zuletzt editiert von
                                  #31

                                  julian said in Native Push Notifications Support for NodeBB:
                                  > you can do so by either waiting for v3.10.0

                                  Hi,

                                  I'm on 3.10.0 but still see the ntfy notification plugin. Are native push notifications available if updating to current version?

                                  phenomlab@community.nodebb.orgP 1 Antwort Letzte Antwort
                                  0
                                  • dave1904@community.nodebb.orgD dave1904@community.nodebb.org

                                    julian said in Native Push Notifications Support for NodeBB:
                                    > you can do so by either waiting for v3.10.0

                                    Hi,

                                    I'm on 3.10.0 but still see the ntfy notification plugin. Are native push notifications available if updating to current version?

                                    phenomlab@community.nodebb.orgP This user is from outside of this forum
                                    phenomlab@community.nodebb.orgP This user is from outside of this forum
                                    phenomlab@community.nodebb.org
                                    schrieb am zuletzt editiert von
                                    #32

                                    dave1904 it's part of core - have a look under /me/web-push. If you use this, then you'll need to disable ntfy

                                    1 Antwort Letzte Antwort
                                    0
                                    • julian@community.nodebb.orgJ julian@community.nodebb.org

                                      Our relationship with push notifications has been rather circuitous...

                                      1. First Andrew (psychobunny) tried plain desktop notifications via the Notification API (that's the desktop notifications plugin), but notification delivery stopped when you closed your browser.
                                      2. Then I wrote the PushBullet plugin, but they went from free to paid and that went out the window
                                      3. Around that time I wrote the Firebase plugin, which was a dead end because there was no iOS support.
                                      4. I then wrote the ntfy plugin, which works really well, but does rely on a freemium third-party service and app (written by @binwiederhier@discuss.ntfy.sh)

                                      Thanks to some recent discussion from crazycells and bh4-tech, I learned that the Push API had reached general availability across most modern browsers. In fact, this actually happened over a year ago, so compatibility should be even better.

                                      So I set about working on yet another push notifications plugin, hopefully for the last time, and this time using the native Push API on the client-side.

                                      To enable them, simply navigate over to the "Push Notifications" menu item in your user profile, and flip the switch.

                                      6da06989-f902-492b-866f-14c39b34a9ca-image.png

                                      So, let's dogfood! I de-activated the ntfy plugin on this site and activated the web-push plugin so you can try it out right now.

                                      The plugin is in the proof-of-concept phase, so there might (read: most definitely will be) issues. Please let me know any you find here.

                                      dave1904@community.nodebb.orgD This user is from outside of this forum
                                      dave1904@community.nodebb.orgD This user is from outside of this forum
                                      dave1904@community.nodebb.org
                                      schrieb am zuletzt editiert von
                                      #33

                                      To use the native notifications i have to disable ntfy first?

                                      Edit: After disabling there are no notifications settings under user settings. So I guess I have to update the software

                                      phenomlab@community.nodebb.orgP 1 Antwort Letzte Antwort
                                      0
                                      • dave1904@community.nodebb.orgD dave1904@community.nodebb.org

                                        To use the native notifications i have to disable ntfy first?

                                        Edit: After disabling there are no notifications settings under user settings. So I guess I have to update the software

                                        phenomlab@community.nodebb.orgP This user is from outside of this forum
                                        phenomlab@community.nodebb.orgP This user is from outside of this forum
                                        phenomlab@community.nodebb.org
                                        schrieb am zuletzt editiert von
                                        #34

                                        dave1904 sorry. It's not core. You need to install nodebb-plugin-web-push and then you'll see the section I mentioned previously.

                                        1 Antwort Letzte Antwort
                                        0
                                        • julian@community.nodebb.orgJ julian@community.nodebb.org

                                          Our relationship with push notifications has been rather circuitous...

                                          1. First Andrew (psychobunny) tried plain desktop notifications via the Notification API (that's the desktop notifications plugin), but notification delivery stopped when you closed your browser.
                                          2. Then I wrote the PushBullet plugin, but they went from free to paid and that went out the window
                                          3. Around that time I wrote the Firebase plugin, which was a dead end because there was no iOS support.
                                          4. I then wrote the ntfy plugin, which works really well, but does rely on a freemium third-party service and app (written by @binwiederhier@discuss.ntfy.sh)

                                          Thanks to some recent discussion from crazycells and bh4-tech, I learned that the Push API had reached general availability across most modern browsers. In fact, this actually happened over a year ago, so compatibility should be even better.

                                          So I set about working on yet another push notifications plugin, hopefully for the last time, and this time using the native Push API on the client-side.

                                          To enable them, simply navigate over to the "Push Notifications" menu item in your user profile, and flip the switch.

                                          6da06989-f902-492b-866f-14c39b34a9ca-image.png

                                          So, let's dogfood! I de-activated the ntfy plugin on this site and activated the web-push plugin so you can try it out right now.

                                          The plugin is in the proof-of-concept phase, so there might (read: most definitely will be) issues. Please let me know any you find here.

                                          dave1904@community.nodebb.orgD This user is from outside of this forum
                                          dave1904@community.nodebb.orgD This user is from outside of this forum
                                          dave1904@community.nodebb.org
                                          schrieb am zuletzt editiert von
                                          #35

                                          phenomlab found the plugin, thanks!

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          • julian@community.nodebb.orgJ

                                            Wix Forums being sunset, what's next?

                                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben ActivityPub Test Kategorie wix nodebb migration
                                            1
                                            0 Stimmen
                                            1 Beiträge
                                            70 Aufrufe
                                            Niemand hat geantwortet
                                          • FrankMF

                                            NodeBB - v3.7.0

                                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben NodeBB nodebb linux
                                            1
                                            0 Stimmen
                                            1 Beiträge
                                            160 Aufrufe
                                            Niemand hat geantwortet
                                          • FrankMF

                                            NodeBB - Update

                                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben NodeBB nodebb
                                            1
                                            0 Stimmen
                                            1 Beiträge
                                            98 Aufrufe
                                            Niemand hat geantwortet
                                          • FrankMF

                                            NodeBB - Upgrade v1.19.4

                                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben NodeBB nodebb
                                            1
                                            0 Stimmen
                                            1 Beiträge
                                            110 Aufrufe
                                            Niemand hat geantwortet
                                          • FrankMF

                                            NodeBB - Update auf v1.18.4

                                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben NodeBB nodebb nodejs
                                            1
                                            0 Stimmen
                                            1 Beiträge
                                            202 Aufrufe
                                            Niemand hat geantwortet
                                          • FrankMF

                                            Portainer - NodeBB Container erstellen

                                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben Linux nodebb portainer linux redis
                                            1
                                            5
                                            0 Stimmen
                                            1 Beiträge
                                            352 Aufrufe
                                            Niemand hat geantwortet
                                          • FrankMF

                                            NodeBB - nodebb-plugin-spam-be-gone

                                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben NodeBB nodebb
                                            1
                                            1
                                            0 Stimmen
                                            1 Beiträge
                                            295 Aufrufe
                                            Niemand hat geantwortet
                                          • FrankMF

                                            Upgrade auf NodeBB 1.11.0

                                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben NodeBB nodebb linux
                                            1
                                            1
                                            0 Stimmen
                                            1 Beiträge
                                            416 Aufrufe
                                            Niemand hat geantwortet
                                          Powered by NodeBB | Contributors
                                          © 2022 frank-mankel.de
                                          Fediverse
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Kategorien
                                          • World
                                          • Aktuell
                                          • Tags
                                          • Beliebt