this post was submitted on 11 Sep 2024
0 points (NaN% liked)

NodeBB Development

0 readers
3 users here now

Stay tuned here to hear more about new releases and features of NodeBB!


This is a forum category containing topical discussion. You can start new discussions by mentioning this category.

founded 5 months ago
 

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.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] julian@community.nodebb.org 0 points 9 months ago (4 children)

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.org 0 points 9 months ago (3 children)

julian when does 3.10 come out? ๐Ÿ˜

[โ€“] julian@community.nodebb.org 0 points 9 months ago (2 children)
[โ€“] phenomlab@community.nodebb.org 0 points 9 months ago* (last edited 9 months ago) (1 children)

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.org 1 points 9 months ago

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

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