Search code examples
iphonemodesilent

How can I make iPhone Silent mode independent to iPhone App?


Is it really possible to make iPhone Silent mode independent to iPhone App ?

This App "Talking Carl" makes me so confused. My iphone was in Silent mode. And whenever I open this application. Application sound is in ON mode. But iPhone sound is in OFF mode.

I have checked with other background sound applications. But this case is not applied to others. If iPhone is Silent then Application all music is in silent.

How it could be possible ? How we can make iPhone Silent mode independent to App ? There must be some way as that Application is live on Appstore


Solution

  • The audio session category can be used to decide if your audio should respect the silent switch or not. See this link for more details. For example AVAudioSessionCategoryPlayback will allow the app to keep playing sound even when the switch is set to silent.