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?
NodeBB Development
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.
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.
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?
@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.
The web-push plugin has now been promoted in v4 beta to "bundled" status, with a corresponding demotion of the ntfy plugin.
https://github.com/NodeBB/NodeBB/commit/aa060d31d130cd54d18cd8dc2f25ba7de58f4fea
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:
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
- 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
julian when does 3.10 come out? 😁
phenomlab Right now :laughing:
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.
phenomlab said in Native Push Notifications Support for NodeBB: > NordVPN
Thanks for closing the loop! Kind of annoying that NordVPN blocks them...
If you do not receive any push notifications, it is likely because your browser is using an old, cached copy of the NodeBB service worker. You will have to wait for your browser to download the new service worker, or manually clear it.
Secondly, there is one specific caveat for this right now. Users on Safari currently do not use the service worker, and thus will not receive push notifications. This was due to a change in 2021 to work around a Safari bug, but I do not know at this time whether Safari has fixed the issue upstream.
I'm particularly excited about this new development because it opens the door for richer integration between NodeBB and the push notifications themselves.
With (probably) every iteration prior, when you clicked on the notification, it likely opened a new window. With direct access to the Push API and service worker, we can now accurately detect whether the site is already open (in another tab), and open it there.
In the future, we'll also be able to add in things like icons, pictures, and custom actions, right from the notification itself.
One particular nice-to-have is the ability to update notifications. Being able to merge notifications (like they already do in NodeBB) or potentially rescind notifications would be a nice step forward in usability as well.