mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #91] Max/High priority notifications should be able to override DND #73
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#73
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 @binwiederhier on GitHub (Jan 12, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/91
https://stackoverflow.com/questions/31862753/android-how-to-turn-on-do-not-disturb-dnd-programmatically
@12nick12 commented on GitHub (Jan 17, 2022):
I second this. This would be awesome.
@binwiederhier commented on GitHub (Apr 14, 2022):
I am dabbling with this now. I'm able to turn DND off/on globally, but I don't really want to do that. I just want to decide which notification make a sound, and which ones don't.
@binwiederhier commented on GitHub (Apr 14, 2022):
This is quite fascinating but also interesting.
For each of the 5 priorities, I create an Android
NotificationChannel, for which I can setsetBypassDndflag. However, I can only set that if I have a certain permission, for which the user has to manually toggle a setting in the Android UI. That wouldn't be a problem, except that aNotificationChannel, once created,cannot be updated...............Rubber ducking apparently works, even when typing it out 🦆 🦆 🦆
Looks like channels can be updated and when the permission to edit DND has been granted, setting
setBypassDndafter the fact on an existing channel works.I think I can work with this 🥳
@binwiederhier commented on GitHub (Apr 14, 2022):
So I dabbled (https://github.com/binwiederhier/ntfy-android/pull/25), but we decided via Discord that we'll not programmatically change the DND override for individual channels in the app. Instead, I'll just make a menu item to "Override DND, sound and vibration" which will open the Android "Notification Settings" dialog. I'll also write some docs.
@binwiederhier commented on GitHub (Apr 14, 2022):
Fixed with this^^, but I'll add some documentation too, so I'll leave it open until then.
@binwiederhier commented on GitHub (Apr 15, 2022):
Added docs for this:
github.com/binwiederhier/ntfy@06fd7327de