Alex Rivera | Logout

How to get silent switch status in iOS5

Asked 2011-10-18T00:57:32.293
11

I found out "Silent switch" status of Device using "AudioSessionGetProperty" before [iOS5] released.

CFStringRef route;
UInt32 propertySize = sizeof(CFStringRef);
AudioSessionInitialize(NULL, NULL, NULL, NULL);
AudioSessionGetProperty(kAudioSessionProperty_AudioRoute, &propertySize, &route);
if(CFStringGetLength(route) == 0) {
     // Silent Mode
}

Now, I'd like to know how to get "silent switch" status in "iOS5"

Edit
Report

1 Answer

2

It's not possible. I've asked the question directly to Apple using a Developer Technical Support, and they answered me that the way that was made possible prior to iOS 5 was because of a breach, that was corrected in iOS 5. They say it's not made possible anymore, and if we want such a feature, we have to ask for it.

answered 2012-02-23T12:07:50.940

Your Answer