Closed
Description
Problem description
With Termux:API 0.51.0 from F-Droid, the --on-delete
option to termux-notification
only works the first time: the next times, it will always execute the same command.
Steps to reproduce
- Run this command:
termux-notification --id testid --title testtitle --content testcontent --on-delete "echo $(date) > $TTY"
- Discard the notification: the date appears in the terminal.
- Re-run the command, re-dicard the notification.
Expected behavior: a more recent date appears in the terminal.
Observed behavior: the same date appears in the terminal.
Changing the id, the title do not help, nor using a completely different action. Forcing stop on Termux and Termux:API do not help. Only rebooting resets the action.
It used to work with 0.50.1.
Technical info
- termux-api application version: 0.51.0 from F-Droid
- termux-api package version (installed through apt): 0.59.1
- Android OS version: 13 (LineageOS 20-20231222-NIGHTLY-Lynx)
- Device model: Google Pixel 7A
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels