Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send message to particular user #5

Open
CSmither opened this issue Nov 8, 2018 · 10 comments
Open

Send message to particular user #5

CSmither opened this issue Nov 8, 2018 · 10 comments

Comments

@CSmither
Copy link

CSmither commented Nov 8, 2018

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
Copy link
Member

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
Copy link

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
Copy link

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
Copy link

mhf-ir commented May 18, 2019

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
Copy link
Member

This feature should be done as a plugin.

@jmattheis jmattheis transferred this issue from gotify/server May 20, 2019
@Mte90
Copy link

Mte90 commented Jun 9, 2020

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

@ScrumpyJack
Copy link

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
Copy link
Member

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
Copy link

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 :)

@luisgagocasas
Copy link

I reactivate the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

8 participants