Persistent notifications (termux-notification --ongoing) are not persistent.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Problem description
When using termux-notification, if I'm understanding correctly, the --ongoing parameter should make the notification a persistent, unswipable one. However, I can still swipe to close it.
Steps to reproduce
Send yourself a notification, for example:
termux-notification --ongoing --id test -t Test -c "Blah blah"
then try swiping it away.
Expected behavior
The notification should not be removable by swipe action - I should only be able to get rid of it by using termux-notification-remove.
Additional information
- termux-api application version: 0.52.0
- termux-api package version: 0.59.1
- Android OS version: 15
- Device model: Moto G54 5G
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the implementation entry point for termux-notification --ongoing and compare its behavior with termux-notification-remove. Reproduce the swipe behavior on Android 15 using the command shown, then verify that an ongoing notification cannot be dismissed by swiping and can still be removed with the removal command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100