[nodebb-plugin-desktop-notifications] Desktop Notifications (like GMail)
-
@psychobunny is this still active?
Have it on our test forum and a couple of issues.
- Don't seem to get notifications in Chrome on Android. Testing further to check if it works on Firefox on Android.
- Is there any way in which the notifications can be throttled? Noticed a flood of notifications when we started clicking multiple times on the upvote button. Could lead to a very annoying experience for users if someone exploits this.
-
1 - Mobile notifications only work on very few mobile browsers today: https://developer.mozilla.org/en-US/docs/Web/API/notification (click on the mobile tab under Browser Compatibility). We also have the pushbullet plugin (which requires a 3rd party app, but works on all mobile devices)
2 - Notification throttling is probably something to think about for core. This plugin just pushes the notifications that come in through the system, so best handled higher up
-
@teh_g I'd like to see either this plugin or something similar support ServiceWorkers and push notifications.
-
They should work by going through the browser push notifications, though I personally don't have them enabled.
When installed, the plugin should prompt you to allow notifications via a toaster alert at the bottom of the screen. Looks like this:
-
In what way is it broken?
-
Just to be clear, a tab is open when you are testing the notifications, right?
-
Ok after a few days of testing:
- After allowing notifications the tab has to be closed and reopened for them to work.
- I can't find a way to make them work on Chrome mobile or the PWA.
- Chat messages play the sound on mobile... sometimes. I think the chat has to be opened for this first.
- There are no desktop notifications for chat messages
I'm pretty close to giving up and moving to another forum software... which would be a real shame since NodeBB offers everything else that I need and I wrote an LDAP plugin.