gotify / contrib

A list of community contributions.
MIT License
95 stars 38 forks source link

Send message to particular user #5

Open CSmither opened 5 years ago

CSmither commented 5 years ago

It would be great to be able to send a message to a particular user. Possibly as an optional parameter for the message object of the user's username? So the message JSON would look something like...

{ 
  "message" : "Backup was successfully finished.",
  "priority": 2,
  "title" : "Backup",
  "user" : "csmither"
}
jmattheis commented 5 years ago

Hey @CSmither Currently an application can only send messages to one user (the one that created the app), changing this concept would require some heavy changes in the database schema.

So lets wait till we have more users who want this feature.

RamonSmit commented 5 years ago

Well instead of notifying by username, I think I would prefer to see an implementation of sending to specific tokens of subscribers. Or a list of tokens that are going to receive the message.

geeseven commented 5 years ago

Seems like groups would be needed. If groups are needed, seems like group admins and group permissions would be needed. Then that opens up a can of worms.

Could a user unsubscribe from messages themselves or is that something only the group admin could do? Could a user set priority for a message that is different than what got set during creation? Do all members of the group have permissions to send messages and delete a message for all members or is there a read only option? Do group messages need a from field? These are just a few examples that I came up with off the top of my head.

If we are going to proceed with this feature, it needs to developed with #63 in mind.

mhf-ir commented 5 years ago

I think per applicaion user permission is better solution, Applicaion is Pub topic and users are Sub. In application endpoint we could add or remove users. Like other Pub/Sub services.

jmattheis commented 5 years ago

This feature should be done as a plugin.

Mte90 commented 4 years ago

Any updates? I want to use gotify as central notification system instead of slack but I need to push notification to multiple users.

ScrumpyJack commented 3 years ago

A native, simple implementation would be great. Something to build on, like the app creator can add users to an app, and only the app creator can delete messages on that app. I don't like the broadcast plugin, it adds a lot of fluff to the messages and add channels to a single app, where I prefer the concept of multiple apps. One user one app is too limiting for me, I'd like a group of people to be notified of something, and not have to send the same message to each app created by each user.

Can you get sponsoring up and running for this project? I'm sure some would be happy to sponsor, me included

jmattheis commented 3 years ago

One user one app is too limiting for me, I'd like a group of people to be notified of something, and not have to send the same message to each app created by each user.

Gotify wasn't designed to support this natively, thus, it would require major rewrite of gotify to support this. I've ideas on how to implement this to support use-cases with multiple users, but I've no real incentive to do this, as I don't need it and I rather do things I like in my free time.

You can sponsor the gotify project, but this is more general and not bound to specific issues: see on the right column in gotify/server.

ScrumpyJack commented 3 years ago

I've no real incentive to do this, as I don't need it and I rather do things I like in my free time

Can't argue with that :)