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.

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

    1 Reply Last reply
    1
    0
    • NodeBB DevelopmentN NodeBB Development shared this topic on
    • julianJ This user is from outside of this forum
      julianJ This user is from outside of this forum
      julian
      wrote on last edited by
      #40

      D1re_W0lf mmm it should work but we don’t have Apple devices to test against…

      1 Reply Last reply
      1
      0
      • 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
        #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.

        julianJ 1 Reply Last reply
        1
        0
        • bh4 techB bh4 tech

          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.

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

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

          1 Reply Last reply
          1
          1
          • ? Offline
            ? Offline
            Guest
            wrote on last edited by
            #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?

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

                julian it does

                Link Preview Image
                Can I test push notifications for my mobile app on BrowserStack? | BrowserStack

                Yes! Support for Push Notifications is now enabled on BrowserStack devices for you to be able to test the Push Notification scenarios in your app. For Push N...

                favicon

                BrowserStack (www.browserstack.com)

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  Guest
                  wrote on last edited by
                  #46

                  Yes Browserstack use real devices - https://www.browserstack.com/guide/test-push-notifications-on-ios-devices

                  1 Reply Last reply
                  1
                  0
                  • D This user is from outside of this forum
                    D This user is from outside of this forum
                    D1re_W0lf
                    wrote on last edited by
                    #47

                    bh4-tech I’ll try that. Thank you.

                    1 Reply Last reply
                    0
                    • D This user is from outside of this forum
                      D This user is from outside of this forum
                      D1re_W0lf
                      wrote last edited by
                      #48

                      bh4-tech Hi gain. Apologies for the long delay in replaying. I tried to activate on my iPhone without any luck. I used Safari, Chrome, and Vivaldi both directly and to “install” as a PWA, but none of it worked.

                      1 Reply Last reply
                      1
                      0
                      • julianJ This user is from outside of this forum
                        julianJ This user is from outside of this forum
                        julian
                        wrote last edited by
                        #49

                        D1re_W0lf does it work if you add the app to the home screen?

                        1 Reply Last reply
                        1
                        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