this post was submitted on 11 Sep 2024
1 points (100.0% 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 6 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
[–] d1re_w0lf@community.nodebb.org 1 points 1 month ago (2 children)

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

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

[–] bh4-tech@community.nodebb.org 1 points 1 month ago (2 children)

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.

[–] d1re_w0lf@community.nodebb.org 1 points 18 hours ago (1 children)

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.

[–] julian@community.nodebb.org 1 points 5 hours ago

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

[–] julian@community.nodebb.org 2 points 1 month ago

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