I\'m building a medical diagnostic app. Interruptions while a patient (or doctor) is in the midst of using it would disrupt the purpose of the app and waste a lot of time. <
There's no public API about Do Not Disturb or even Airplane mode. Not even to know the status.
About Airplane mode, you could check the network status (using Reachability), but it wouldn't be 100% accurate.
Reachability is a code sample from Apple, but there are several libraries based on it on GitHub.