@pitaj said in How to use websocket notifications from external app?:
@reinier-pupo okay so you want to listen for notifications.
You essentially want something like this:
https://github.com/NodeBB/NodeBB/blob/b46d2f93e64e6546fb295d396b830dcab9f0cbbd/employee monitoring software/public/src/client/header/notifications.js#L25
Yeah, thank you!! Exactly what i was looking for!
On mobile devices the notifications aren't immidiately shown unless you click on the side panel. It would be nice to see a notification marker of some sorts on the navbar.
Need to add localStorage to it, but also an option to re-enable in the user settings in case you accidentally closed it and actually do want it activated.
In any case, noticed OP is on an iPad, so made some changes that might work for him