How to know the device is in silent or in ring mode in IOS 5?
kAudioSessionProperty_AudioRoute
gives "RouteDetailedDescription_PortType" = Speaker
But how to know whether the device is in silent or not?
Thanks, Sai Jithendra
How to know the device is in silent or in ring mode in IOS 5?
kAudioSessionProperty_AudioRoute
gives "RouteDetailedDescription_PortType" = Speaker
But how to know whether the device is in silent or not?
Thanks, Sai Jithendra
kAudioSessionProperty_AudioRoute
seems to be deprecated..Use kAudioSessionProperty_AudioRouteDescription
instead..
See this thread
We won't be able to detect the silent switch state anymore since iOS 5...
The answer from Apple is there on the accepted answer : Detecting the iPhone's Ring / Silent / Mute switch using AVAudioPlayer not working?