We're creating an audio application for iPad (only) which will be used for live performances. The device will be wired directly into the console. As such, the last thing you want during a live performance is to have the device suddenly chirp out an unexpected alarm or reminder.
With research in Apple's SDK, it looks like you can block everything except calendar and alarms (and calls on iPhone).
That said, does anyone know how to tell the device 'While we're in 'On Air' mode, don't allow any OS notifications'?
If not, can we at least query if they're turned on so we can warn the user?
Jailbeaking is not an option because we want to sell this via the App Store.
UPDATE
Another option is to allow the regular alerts and such to still play through the iPad's speaker, but we send our sounds out via the line-out in the dock connector.
Of course we could always develop our own hardware for this, but we're trying to leverage as much of the device's built-in functionality as possible.
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.
It may make your app ineligible for App Store distribution but there is apparently a private API that some people have gotten to do this. See:
Some people report that there are certain API calls that have the byproduct of taking over all sound output. See iOS 5 Audio Alarms Don't Sound Without kAudioSessionProperty_OverrideCategoryMixWithOthers On for one example.
Your safest bet is probably to prompt the user to change the setting when the app opens.
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