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

feat: add callback action #237

Closed
wants to merge 3 commits into from

Conversation

cyrinux
Copy link

@cyrinux cyrinux commented Jun 16, 2022

Hey,
Me again, following my idea in #236 , you can find here the stuff to be able to do an async callback to an api when the notification is well receive.

@cyrinux cyrinux force-pushed the feat/add-callback-action branch from 68ca635 to 27c3732 Compare June 16, 2022 21:29
@cyrinux cyrinux force-pushed the feat/add-callback-action branch from 27c3732 to 4ccbd9d Compare June 16, 2022 21:33
@@ -1,5 +1,7 @@
package com.github.gotify.service;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the use-case, I don't think this is needed as you can already open urls, no need to do this separately in background.

@cyrinux
Copy link
Author

cyrinux commented Jun 18, 2022

The use case is too trigger a callback on another api in the background when the notification is delivered on the phone.

@jmattheis
Copy link
Member

You could have a link inside the message to acknowledge that the message was received. Also, seems really insecure, sending requests in the background without user interaction. As is, I won't accept this PR, feel free to create a feature issue for this, and if enough users want this it, maybe I'll change my mind on this.

@jmattheis jmattheis closed this Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants