server icon indicating copy to clipboard operation
server copied to clipboard

Push notifications for specific user / group of users

Open axoxymous-coder opened this issue 2 years ago • 2 comments

Have you read the documentation?

  • [x] Yes, but it does not include related information regarding my question.
  • [ ] Yes, but the steps described in the documentation do not work on my machine.
  • [ ] Yes, but I am having difficulty understanding it and wants clarification.

You are setting up gotify in

  • [x] Docker
  • [ ] Linux native platform
  • [ ] Windows native platform

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.

axoxymous-coder avatar Dec 07 '23 06:12 axoxymous-coder

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.

jmattheis avatar Dec 12 '23 19:12 jmattheis

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.

OdinVex avatar Jan 21 '24 06:01 OdinVex