termux / termux/termux-api-package

Remove other app specific notification

Open
#107 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Shell
Stars
1.7k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

Description

It would be nice if we had a command to remove a specific app notification. Something like `termux-notification-remove -key 1234

Why

I want to consume notifications from other apps, send to my computer if I find a specific word in the message and remove the notification so I don't have to read them again.

Example: Someone sends a message with "asap". I want to get this message, send to my pc and remove the notification.

Background information

Termux already have termux-notification-remove, but only works for termux notifications.
Also, there is termux-notification-list, so the permission is already there.
I don't know of other open-source apps with this feature, but I know that this is possible in this Stackoverflow link and in this

Android developpers

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing termux-notification-remove and termux-notification-list commands, then read the linked Android NotificationListenerService cancelNotification documentation. The change is complete when a command can accept a notification key and remove a matching notification from another app, while preserving the existing Termux behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, shell
Domain
cli, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.