mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #938] Android client subscribe/unsubscribe through CLI/API tools #658
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#658
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @osering on GitHub (Nov 6, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/938
💡 Idea
There is possibility to send and receive notifications through android intents (for instance ,in closedsource Macrodroid, and opensource Automate) in CLI (outside of app, GUI), but no possibility to subscribe/unsubscribe to topics, like in other OS
https://docs.ntfy.sh/subscribe/cli/
https://docs.ntfy.sh/subscribe/api/
It also could be quite easily done, if all subscriptions would be put in some xml config file (not in sqlite db) in io.hackel.ntfy/shared_prefs/ (like other android apps implement configs), possibly in existing file MainPreferences.xml of SubscriberService.xml (both of which looks underused) where it could be edited by (shell) script (and later - probably, by some specific ntfy command/implementation).
So user without hassle could add/remove subscription topics on the fly and it would sync (maybe reload required) with topics seen in apps GUI.
💻 Implementation
Should possibly be added in Android app, by changing place where info about active/subscribed topics is stored - doing it in plain text xml config file, not db.