Questions tagged [do-not-disturb]
19 questions
4
votes
1 answer
Android : How to bypass Do Not Disturb So that it plays notification audio in background
I am targeting Android 8.0 and above and want my remote notifications to play the channel configured audio sound when
a) the device is in do not disturb mode (with exceptions enabled)
and
b) the device is in the background.
Notifications work as…

MHugh
- 455
- 1
- 7
- 20
4
votes
1 answer
Difference between setNotificationPolicy and setInterruptionFilter in android
The NotificationManager class in android lists two methods setInterruptionFilter (int interruptionFilter) and setNotificationPolicy (NotificationManager.Policy policy).
From the docs:
setInterruptionFilter
public final void setInterruptionFilter…

Pushkar
- 760
- 15
- 37
4
votes
0 answers
How to turn on or off DND using dart in flutter?
I want to turn on and off do not disturb mode in android using flutter.
My Question is :
"Is there any way to achieve it without writing native code (i.e. any package or direct dart code)"

Benny
- 677
- 1
- 6
- 22
3
votes
0 answers
Is there a way to bypass device DND from application installed on work profile?
Before it has been possible to give permission for bypassing device DND mode for an application in work profile by instructing user to install the same application to their personal profile as well and then change the permissions. Now that seems to…

JMKSe
- 31
- 3
2
votes
0 answers
Geofence and startMonitoringSignificantLocationChanges not responding under Do not disturb mode
I am testing with location sensitive app that could not get response from neither Geofence nor startMonitoringSignificantLocationChanges under DND mode while the app was killed. For example, no response was received while entering the registered…

Yiling
- 21
- 2
2
votes
0 answers
How to schedule Do Not Disturb settings in android programmatically?
I'm trying to activate Do Not Disturb (DND) settings from my app. I can set the DND settings using this piece of code (Provided ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED is true):
NotificationManager mNotificationManager = (NotificationManager)…

Deb Sourav
- 51
- 3
2
votes
1 answer
Turn on do not disturb programmatically, with exceptions
I have an android app, and I need to turn on the Do Not Disturb button programmatically, but with exceptions, that I can play media. I did succeed with turning on the Do Not Disturb with this code :
if (Build.VERSION.SDK_INT >=…

user3927415
- 415
- 4
- 18
2
votes
1 answer
Why Do Not Disturb is not activated in Xiaomi devices?
I am setting the interruption filter using this code:
NotificationManager myNotificationManager = (NotificationManager)…

Ton
- 9,235
- 15
- 59
- 103
1
vote
0 answers
Handle android device that doesn't have the DO not Disturb permission accessible?
So I have an app that needs do not disturb permissions, which I get like this:
NotificationManager manager = (NotificationManager) getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
if (manager != null &&…

mp19975558
- 21
- 3
1
vote
4 answers
How to read do not disturb using applescript?
I am trying to read status of do not disturb or dnd using applescript.
For some reason, it always return "1" no matter what if the dnd is on or off.
do shell script "defaults -currentHost read…

user4150758
- 384
- 4
- 17
1
vote
1 answer
show notifications - Do Not Disturb mode enabled
Does someone know how to receive notifications on a device when silent mode is enabled?
I'm sending notifications push with a web server and firebase, and it seems impossible to receive a notification when the android device is in silence mode (Do…

mikedal
- 13
- 2
1
vote
0 answers
Is there a way to check the status of "do not disturb" setting in iphone or android app?
Currently I'm building ios and android apps on top of react native. I hope to check the status of "do not disturb" in phone settings so we can suggest user to turn it on if it's off. My question is: is there any way to check the status of "do not…

Quan
- 11
- 2
1
vote
1 answer
Check if App has DND permission on Flutter
How to check from Flutter app if it has DND permission. And if not how to enable the user to allow Do Not Disturb access for the App?
Already added
to Manifest.

david72
- 7,151
- 3
- 37
- 59
0
votes
0 answers
Is there a way to manage Do Not Disturb settings on iOS with flutter?
There is a flutter package that can control Do Not Disturb settings in Android: https://pub.dev/packages/flutter_dnd.
I can't find any information on how to manage DND with iOS, for example programmatically turn it on or off in the app. Is this…

Kdon
- 892
- 6
- 19
0
votes
0 answers
Bypass DND and Silent Mode in Android Push Notification
I need to bypass the DND (Do Not Disturb) and Silent mode for specific push notifications (Only for certain channels).
There are many old questions related to this topic. But I didn't see any latest discussions.
Could any expertise guide here with…

Sachintha Udara
- 635
- 1
- 7
- 22