Skip to content
0
  • Home
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
  • Home
  • Recent
  • Tags
  • Popular
  • World
  • 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 (Sketchy)
  • No Skin
Collapse

Wandering Adventure Party

  1. Home
  2. Uncategorized
  3. Native Push Notifications Support for NodeBB

Native Push Notifications Support for NodeBB

Scheduled Pinned Locked Moved Uncategorized
pushnotificationodebbnotificationspushapi
50 Posts 9 Posters 2 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.
  • julianJ julian

    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>B This user is from outside of this forum
    <baris>B This user is from outside of this forum
    <baris>
    wrote on last edited by
    #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
    phenomlabP 1 Reply Last reply
    0
    • <baris>B <baris>

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

      image.png

      Link Preview Image
      phenomlabP This user is from outside of this forum
      phenomlabP This user is from outside of this forum
      phenomlab
      wrote on last edited by
      #20

      baris thanks. That setting is already on for me.

      julianJ 1 Reply Last reply
      0
      • phenomlabP phenomlab

        baris thanks. That setting is already on for me.

        julianJ This user is from outside of this forum
        julianJ This user is from outside of this forum
        julian
        wrote on last edited by
        #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.

        phenomlabP 1 Reply Last reply
        0
        • julianJ julian

          phenomlab you need to be on v4.

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

          phenomlabP This user is from outside of this forum
          phenomlabP This user is from outside of this forum
          phenomlab
          wrote on last edited by
          #22

          julian thanks. I’ll check this later.

          1 Reply Last reply
          0
          • julianJ julian

            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

            julianJ This user is from outside of this forum
            julianJ This user is from outside of this forum
            julian
            wrote on last edited by
            #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
            phenomlabP dave1904D 2 Replies Last reply
            0
            • julianJ julian

              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
              phenomlabP This user is from outside of this forum
              phenomlabP This user is from outside of this forum
              phenomlab
              wrote on last edited by
              #24

              julian when does 3.10 come out? 😁

              julianJ 1 Reply Last reply
              0
              • phenomlabP phenomlab

                julian when does 3.10 come out? 😁

                julianJ This user is from outside of this forum
                julianJ This user is from outside of this forum
                julian
                wrote on last edited by
                #25

                phenomlab Right now 😆

                phenomlabP 1 Reply Last reply
                0
                • julianJ julian

                  phenomlab Right now 😆

                  phenomlabP This user is from outside of this forum
                  phenomlabP This user is from outside of this forum
                  phenomlab
                  wrote on last edited by
                  #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.

                  julianJ 1 Reply Last reply
                  0
                  • phenomlabP phenomlab

                    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.

                    julianJ This user is from outside of this forum
                    julianJ This user is from outside of this forum
                    julian
                    wrote on last edited by
                    #27

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

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

                    phenomlabP 1 Reply Last reply
                    0
                    • julianJ julian

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

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

                      phenomlabP This user is from outside of this forum
                      phenomlabP This user is from outside of this forum
                      phenomlab
                      wrote on last edited by
                      #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.

                      julianJ 1 Reply Last reply
                      0
                      • phenomlabP phenomlab

                        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.

                        julianJ This user is from outside of this forum
                        julianJ This user is from outside of this forum
                        julian
                        wrote on last edited by
                        #29

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

                        phenomlabP 1 Reply Last reply
                        0
                        • julianJ julian

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

                          phenomlabP This user is from outside of this forum
                          phenomlabP This user is from outside of this forum
                          phenomlab
                          wrote on last edited by
                          #30

                          julian yes

                          1 Reply Last reply
                          0
                          • julianJ julian

                            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
                            dave1904D This user is from outside of this forum
                            dave1904D This user is from outside of this forum
                            dave1904
                            wrote on last edited by
                            #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?

                            phenomlabP 1 Reply Last reply
                            0
                            • dave1904D dave1904

                              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?

                              phenomlabP This user is from outside of this forum
                              phenomlabP This user is from outside of this forum
                              phenomlab
                              wrote on last edited by
                              #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 Reply Last reply
                              0
                              • julianJ julian

                                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.

                                dave1904D This user is from outside of this forum
                                dave1904D This user is from outside of this forum
                                dave1904
                                wrote on last edited by
                                #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

                                phenomlabP 1 Reply Last reply
                                0
                                • dave1904D dave1904

                                  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

                                  phenomlabP This user is from outside of this forum
                                  phenomlabP This user is from outside of this forum
                                  phenomlab
                                  wrote on last edited by
                                  #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 Reply Last reply
                                  0
                                  • julianJ julian

                                    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.

                                    dave1904D This user is from outside of this forum
                                    dave1904D This user is from outside of this forum
                                    dave1904
                                    wrote on last edited by
                                    #35

                                    phenomlab found the plugin, thanks!

                                    1 Reply Last reply
                                    0
                                    • julianJ julian

                                      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.

                                      Pankaj SoniP This user is from outside of this forum
                                      Pankaj SoniP This user is from outside of this forum
                                      Pankaj Soni
                                      wrote on last edited by
                                      #36

                                      This requires me to toggle this on by going to my user’s profile. is there a way this can be made default ‘on’ for all users on platform?

                                      julianJ 1 Reply Last reply
                                      0
                                      • Pankaj SoniP Pankaj Soni

                                        This requires me to toggle this on by going to my user’s profile. is there a way this can be made default ‘on’ for all users on platform?

                                        julianJ This user is from outside of this forum
                                        julianJ This user is from outside of this forum
                                        julian
                                        wrote on last edited by
                                        #37

                                        Pankaj-Soni yes and no… the enabling of the push notifications requires a discrete user action — the user has to actually press the switch to enable notifications.

                                        There are ways we can advertise this to end users, so I will look into adding those soon. For now, users will have to go into their user settings to enable push notifications.

                                        bh4 techB 1 Reply Last reply
                                        0
                                        • julianJ julian

                                          Pankaj-Soni yes and no… the enabling of the push notifications requires a discrete user action — the user has to actually press the switch to enable notifications.

                                          There are ways we can advertise this to end users, so I will look into adding those soon. For now, users will have to go into their user settings to enable push notifications.

                                          bh4 techB This user is from outside of this forum
                                          bh4 techB This user is from outside of this forum
                                          bh4 tech
                                          wrote on last edited by
                                          #38

                                          julian Just like pankaj-soni , I too would like to have push notifications on by default

                                          1 Reply Last reply
                                          0

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


                                          • Login

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post