-
Notifications
You must be signed in to change notification settings - Fork 2
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
Subscribing to incoming messages from a plugin #3
Comments
This is currently not in our TODOs. You can refer to the original discussion(See Whether to build a plugin section) on plugin feature to get an idea on how we defined plugins. In short, a plugin is a dedicated program which has some APIs exposed to the gotify main program. Currently, it was implemented because we want to prevent such scenario to make your server full of all kinds of processes, which are difficult to maintain: you need to subscribe to a lot of feeds, so you need to maintain a large number of programs to listen on each of the feeds. Gotify plugins provided a simple and elegant way to sort out all your subscriptions with direct configuration on the WebUI and easy on/off switch. As for your request, I do not see a case where users would need to maintain a relatively large number of processes(>3) to obtain incoming messages. Thus, I would recommend writing a simple program that listens to gotify messages and forwards them to your e-mail. This is my consideration on this issue. Feel free to reply if you have your own considerations on what problems should plugins resolve.:) |
Let's wait till more users want this feature. |
As briefly discussed on the matrix chat, I would also like to see such an API for a few use cases:
All of this can be done with a single, simple plugin API (just a single method that takes a Message and returns a Message or null) |
In my option it's too ugly for project structure because it brings more unnecessary maintenance costs, I think Gotify should become a bridge between apps and other clients, and the step of pushing to other clients should also execute by Gotify with plugins without any additional apps. |
I was thinking about writing a plugin to send a E-Mail containing a receieved notfication, but the current APIs exposed to plugins do not seem to support the subscription to incoming messages. I.e. it is not possible to have a plugin act as a client. At least that's what I'm concluding from your docs.
I therefore want to ask if such a feature is planned for the future.
The text was updated successfully, but these errors were encountered: