Control volume or do not disturb mode

I am in the process of developing an app that will automatically control your volume based on activity. Can someone guide me how it is possible.

Replies

automatically control your volume

You should not do it, it is too intrusive for the user if your app changes the sound volume or worse mute it out of his/her control. User may miss critical call.

Get a more detailed discussion here: https://copyprogramming.com/howto/how-to-change-an-ios-device-volume-programmatically