You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example there should be 2 buttons displayed under the notification, which are labeled as "Accept" & "Deny".
A click on "accept" would return for the curl command as body "accepted" and deny, "deny".
I know that a post to /messages do not wait for any notification to be shown or user interaction and need some changes which would probably break other clients. But a option could be that if a "extras.client::notification[] " is present in the body, no http response is send till the users does a interaction. Otherwise proceed with message publishing/body response as until now.
Note: I dont eve know if its possible to define more than one action/buttons on a (android) notification.
This was just something that came in my mind while playing around.
Would love to discuss this further.
The text was updated successfully, but these errors were encountered:
Similar #482. This could be implemented on the user side after #494 is implemented, I don't want to natively support this see reasoning in #482 (comment)
Have you read the documentation?
You are setting up gotify in
I had the idea to use gotify as a second factory for SSH logins.
Already use it to notify me on login/logouts.
I thought about sending a notification with a message extra action click action to "Allow SSH connection".
The notification script is very simple:
Is it somehow possible to let the curl command wait and check the http response body for something like "accepted" / "denied" based on gotify action?
Example:
In the example there should be 2 buttons displayed under the notification, which are labeled as "Accept" & "Deny".
A click on "accept" would return for the curl command as body "accepted" and deny, "deny".
I know that a post to
/messages
do not wait for any notification to be shown or user interaction and need some changes which would probably break other clients. But a option could be that if a "extras.client::notification[] " is present in the body, no http response is send till the users does a interaction. Otherwise proceed with message publishing/body response as until now.Note: I dont eve know if its possible to define more than one action/buttons on a (android) notification.
This was just something that came in my mind while playing around.
Would love to discuss this further.
The text was updated successfully, but these errors were encountered: