Is there a way to check if user selected "do not disturb" mode? My app relies on some push notifications and I want to inform user, that he should disable "do not disturb" mode for better experience.
You'll need to swipe down from the top right corner of the screen, where Control Center is activated, and view the DND shortcut button to see if it's enabled. If the icon is purple, DND is turned on. Otherwise, DND is disabled and you should receive alerts as you normally do.
Change your Do Not Disturb settings Go to Settings > Focus. Tap Do Not Disturb. You can select allowed or silenced notifications from people and apps, connect your Lock Screen or Home Screen, have this Focus turn on automatically, and add Focus filters.
Open the Settings app. Scroll down and tap Sound & Vibration. Tap Do Not Disturb. Tap the Turn on now button at the top of your screen.
No this is not possible using the public APi's available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With