Open jankratochvil opened 4 years ago
I also experienced some minor issues with notification priority and sound but never got around to investigating them. Could you try tweaking termux:API's notification settings in the android settings and seeing whether changing sound/priority there works?
TBH I did not know there is this detailed Android notification setting . Just it follow what I set in Android ignoring what Termux::API sets. This is probably what various suggestions on stackoverflow say. Personally I am fine with it now as I did configure it in Android and not in my Termux shell script. But Termux still could be fixed but I do not have Android development installed.
Problem description
termux-notification
always plays a sound. Its option--sound
has no effect. And there is no option--silent
.Steps to reproduce
termux-notification -c hello
the same as:echo hello|/data/data/com.termux/files/usr/libexec/termux-api Notification
Actual behavior Default notification sound.
Expected behavior No sound.
Additional information
Not rooted.
adb
output upon request.I do not have Android development environment setup to try some simple fix, sorry.