#2080 [Feature Request] Match Android's Do Not Disturb behavior for notifications / send priority notifications in DND mode

Open
opened 3 weeks ago by t-m-w · 0 comments
t-m-w commented 3 weeks ago

Feature Request: Match Android's Do Not Disturb behavior for notifications / send priority notifications in DND mode.

Currently, Gadgetbridge has the ability to prevent all notifications from sending to a device when Android is in Do Not Disturb mode. However, for some users, it would be convenient if Gadgetbridge continued to send notifications to the device if they are priority notifications that break through Android's Do Not Disturb filter.

From a little research, this might be as simple as running matchesInterruptionFilter () on the notification and sending it along if it returns true, or skipping it if it returns false. That being said, I'm not much of an Android developer and haven't even been able to get Gadgetbridge to compile (that's another issue), so maybe there's a reason this wouldn't work that I haven't considered.

This behavior would be very helpful for me, as it would allow me to keep my phone in Do Not Disturb sometimes but continue to use my watch for the purpose I bought it for: to be a more reliable method of notifying me of important events than my phone, whose sounds/vibrations I often miss when it's bouncing around in my pocket.

Before reporting a bug, please confirm the following:

I got Gadgetbridge from:

If you got it from Google Play, please note that version is unofficial and not supported here; it's also often quite outdated. Please switch to one of the above versions if you can.

Your wearable device is: Pebble Time, Firmware v4.3

Your android version is: 11.0

Your Gadgetbridge version is: 0.48.0

### Feature Request: Match Android's Do Not Disturb behavior for notifications / send priority notifications in DND mode. Currently, Gadgetbridge has the ability to prevent *all* notifications from sending to a device when Android is in Do Not Disturb mode. However, for some users, it would be convenient if Gadgetbridge continued to send notifications to the device *if* they are priority notifications that break through Android's Do Not Disturb filter. **From a little research, this *might* be as simple as running [`matchesInterruptionFilter ()`](https://developer.android.com/reference/android/service/notification/NotificationListenerService.Ranking#matchesInterruptionFilter()) on the notification and sending it along if it returns `true`, or skipping it if it returns `false`.** That being said, I'm not much of an Android developer and haven't even been able to get Gadgetbridge to compile (that's another issue), so maybe there's a reason this wouldn't work that I haven't considered. This behavior would be very helpful for me, as it would allow me to keep my phone in Do Not Disturb sometimes but continue to use my watch for the purpose I bought it for: to be a more reliable method of notifying me of important events than my phone, whose sounds/vibrations I often miss when it's bouncing around in my pocket. #### Before reporting a bug, please confirm the following: - [x] I have read the [wiki](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki), and I didn't find a solution to my problem / an answer to my question. - [x] I have searched the [issues](https://codeberg.org/Freeyourgadget/Gadgetbridge/issues), and I didn't find a solution to my problem / an answer to my question. - [x] If you upload an image or other content, please make sure you have read and understood the [Codeberg Terms of Use](https://codeberg.org/codeberg/org/src/branch/master/TermsOfUse.md) ### I got Gadgetbridge from: * [x] F-Droid * [ ] I built it myself from source code (specify tag / commit) If you got it from Google Play, please note [that version](https://github.com/TaaviE/Gadgetbridge) is unofficial and not supported here; it's also often quite outdated. Please switch to one of the above versions if you can. #### Your wearable device is: Pebble Time, Firmware v4.3 #### Your android version is: 11.0 #### Your Gadgetbridge version is: 0.48.0
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.