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 69 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

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

          pankaj-soni@community.nodebb.orgP This user is from outside of this forum
          pankaj-soni@community.nodebb.orgP This user is from outside of this forum
          pankaj-soni@community.nodebb.org
          schrieb am zuletzt editiert von
          #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?

          julian@community.nodebb.orgJ 1 Antwort Letzte Antwort
          0
          • pankaj-soni@community.nodebb.orgP pankaj-soni@community.nodebb.org

            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?

            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
            #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-tech@community.nodebb.orgB 1 Antwort Letzte Antwort
            0
            • julian@community.nodebb.orgJ julian@community.nodebb.org

              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-tech@community.nodebb.orgB This user is from outside of this forum
              bh4-tech@community.nodebb.orgB This user is from outside of this forum
              bh4-tech@community.nodebb.org
              schrieb am zuletzt editiert von
              #38

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

              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.

                D This user is from outside of this forum
                D This user is from outside of this forum
                d1re_w0lf@community.nodebb.org
                schrieb zuletzt editiert von
                #39

                Hi.
                Just to be certain, push notifications still don’t work on iOS under NodeBB 4.4.4 with nodebb-plugin-web-push 0.7.4, right?

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

                  Hi.
                  Just to be certain, push notifications still don’t work on iOS under NodeBB 4.4.4 with nodebb-plugin-web-push 0.7.4, right?

                  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 zuletzt editiert von
                  #40

                  D1re_W0lf mmm it should work but we don't have Apple devices to test against...

                  1 Antwort Letzte Antwort
                  0
                  • bh4-tech@community.nodebb.orgB This user is from outside of this forum
                    bh4-tech@community.nodebb.orgB This user is from outside of this forum
                    bh4-tech@community.nodebb.org
                    schrieb zuletzt editiert von
                    #41

                    D1re_W0lf Although I don't have an iOS device, but according to docs,on iOS web push notifications work on only those sites which have been added to home screen. So, add this site to home screen and check after few hours.

                    julian@community.nodebb.orgJ 1 Antwort Letzte Antwort
                    0
                    • bh4-tech@community.nodebb.orgB bh4-tech@community.nodebb.org

                      D1re_W0lf Although I don't have an iOS device, but according to docs,on iOS web push notifications work on only those sites which have been added to home screen. So, add this site to home screen and check after few hours.

                      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 zuletzt editiert von
                      #42

                      bh4-tech that's good to know, thank you!

                      1 Antwort Letzte Antwort
                      0
                      • ? Offline
                        ? Offline
                        Gast
                        schrieb zuletzt editiert von
                        #43

                        I checked logs:
                        Sever start with log: info: [plugins/web-push] VAPID keys OK.

                        Nodebb: 4.4.3
                        Plugin: nodebb-plugin-web-push 0.7.4

                        it works on: Desktop + Android
                        But I don't have any permission request popup to enable notifications for Nodebb on Safari Mobile and iOS
                        I tried also with homescreen app in iOS

                        Can anyone help me? julian maybe it is worth to check this behavior in Browserstack?

                        julian@community.nodebb.orgJ 1 Antwort Letzte Antwort
                        0
                        • ? Gast

                          I checked logs:
                          Sever start with log: info: [plugins/web-push] VAPID keys OK.

                          Nodebb: 4.4.3
                          Plugin: nodebb-plugin-web-push 0.7.4

                          it works on: Desktop + Android
                          But I don't have any permission request popup to enable notifications for Nodebb on Safari Mobile and iOS
                          I tried also with homescreen app in iOS

                          Can anyone help me? julian maybe it is worth to check this behavior in Browserstack?

                          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 zuletzt editiert von
                          #44

                          Paweł said in Native Push Notifications Support for NodeBB:
                          > julian maybe it is worth to check this behavior in Browserstack?

                          Yes, this is a good idea 🙂 does browser stack have support for push notifications?

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


                          • FrankMF

                            NodeBB - v3.9.0

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

                            NodeBB - v3.6.0

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

                            NodeBB - 2.8.13 & 3.1.3 Security Release

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

                            NodeBB - Upgrade auf v1.16.0

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

                            Twitter Plugin

                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben NodeBB nodebb
                            1
                            0 Stimmen
                            1 Beiträge
                            181 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
                          • FrankMF

                            nginx konfigurieren

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

                            NodeBB - nach Plugin platt

                            Beobachtet Ignoriert Geplant Angeheftet Gesperrt Verschoben NodeBB nodebb linux
                            1
                            0 Stimmen
                            1 Beiträge
                            637 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