termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

Direct Reply to Notifications

Open bizzybora opened this issue 3 years ago • 2 comments

Feature description

termux-notification-list can list all notifications. Some of these notifications can be replied directly, such as messengers ("Reply", "Mark as read"). It would be great, if termux could send a direct reply to a notification, for example:

termux-notification-reply -i NotificationID -m Message

Reference implementation

I think watomatic uses the same approach.

Cheers

bizzybora avatar Jul 27 '22 11:07 bizzybora

Is there any update on implementing this?

babaric-dev avatar Oct 03 '22 11:10 babaric-dev

you can use this command

termux-notification --button1 "Answer" --button1-action "termux-toast \$REPLY"

If you're click reply button. The termux-toast will be appeared according to the command

Screenshot_20230906-172956

For more information about termux-notification

termux-notification -h

information about actions eg: --button1-action

termux-notification --help-actions

If it's works please close this issue

HusniMuhammad avatar Sep 06 '23 12:09 HusniMuhammad