Closed ErrrorMaxx closed 6 months ago
termux-wake-lock termux-notification -i sshd
... Notifications itself works (shows). Click actions works. Button actions DO NOT
I think this is actually the same issue as in https://github.com/termux/termux-api/issues/677
Because after this line:
termux-notification --action "termux-dialog" -t Suspicious -c NotReally
This line now works:
termux-notification -i sshd -c '...' --priority max --ongoing --button1 'Stop' --button1-action 'termux-notification-remove sshd'
But incurrectly: Button1 works, but runs termux-dialog
instead of termux-notification-remove sshd
Closing this issue in favor of https://github.com/termux/termux-api/issues/677
Have you done any research where the problem is?
No, I'm not. But problem gone after downgrading to latest release
When downgraded, SAF scripts aren't working.
Source code is same, does that mean build process/gradle scripts/ext. Libs affecting the App or something interesting happening in the code, I wonder.
I don't understand what do you mean by "source code is same". SAF was implemented literally way later than latest release happened. So latest release is actually really old version
Yeah, these changes are not released. If you want SAF, please use Git build of Termux:API.
See changes since the latest release: https://github.com/termux/termux-api/compare/v0.50.1...master
Scripts are not standalone. If feature missing in Termux:API app, these scripts won't work.
Problem description
Instead of executing termux-notification button's action, wakelock is stopped and no action really executed
Steps to reproduce
and press 'Stop' button on notification
Expected behavior
Wakelock is still here and action actually works
Additional information