11

I know that there is no way to enable or disable Do not disturb mode through code. But is there a way to check whether its enabled or disabled in the phone.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
vedhanish
  • 251
  • 3
  • 15
  • 1
    Possible duplicate of [How can I detect DND mode within an app?](http://stackoverflow.com/questions/17560765/how-can-i-detect-dnd-mode-within-an-app) – thelaws Oct 12 '16 at 17:56
  • 1
    I don't thing it is possible refer this link http://stackoverflow.com/questions/27976453/can-you-programmatically-toggle-do-not-disturb-mode-in-ios-8-w-swift – Chirag Shah Oct 12 '16 at 17:58
  • Thanks @chiragshah. This helps a lot – vedhanish Oct 12 '16 at 18:08
  • @vedhanish happy coding – Chirag Shah Oct 12 '16 at 18:14
  • Does this answer your question? [How do I check if iOS device is set to "do not disturb"?](https://stackoverflow.com/questions/18376383/how-do-i-check-if-ios-device-is-set-to-do-not-disturb) – computingfreak Jan 10 '20 at 06:15
  • Possible duplicate of https://stackoverflow.com/questions/18376383/how-do-i-check-if-ios-device-is-set-to-do-not-disturb – computingfreak Jan 10 '20 at 06:16

0 Answers0