gotify / server

A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)
https://gotify.net
Other
11.13k stars 620 forks source link

Push notifications for specific user / group of users #615

Open axoxymous-coder opened 9 months ago

axoxymous-coder commented 9 months ago

Have you read the documentation?

You are setting up gotify in

Describe your problem

Hi Team,

At the outset, thanks to the author(s) and all the contributors for this fantastic project. For one of my requirements I was considering Gotify. I have tested the project and have a fair amount of understanding on how it works; but wanted to get some of my queries clarified by the experts here.

I am developing a server side application which needs to send in-app push notifications to both web and mobile clients. Basically clients maintain a persistent WebSocket connection and server sends the notifications. For a send to all and receive by all (connected) clients, I can use Gotify as is. My requirement also include sending targeted message to specific user and group of users. I am wondering if this can be achieved through Gotify. I have explored the plugin (https://github.com/eternal-flame-AD/gotify-broadcast) which does a good job at broadcast in a channel and it probably solves my send to a group use case. However it needs a lot of configuration and with more number of groups its going to be really complicated.

I am looking for suggestions from the Gotify community if anybody has solved similar use cases through Gotify. Any help/pointers will be highly appreciated. Thanks in advance.

jmattheis commented 9 months ago

Hey, solving this problem in gotify is pretty difficult because the data model doesn't support it. Currently applications are bound to a specific user. This makes it difficult to support sending messages to a specific user, because you'd need an application token from that specific user.

It would probably be possible to adjust gotify-broadcast to allow sending messages to a specific user.

OdinVex commented 8 months ago

Perhaps this could be done for a Major SemVer then? I'd rather see Broadcast integrated and extended so well. Plus SVG icons, they can be much smaller than PNG, JPEG, GIF and scale to size. Having trouble with multiple devices getting blurry or too clear (oversized) icons.