Recognising iPhone Silent Mode
cocoa-touch, iphone, mode, silent
Solution
You need to set the appropriate Audio Session Category.
You tell iPhone OS your application’s audio intentions by designating a category for your audio session.
For more detail see - Configuring the Audio Session
Problem
I would like to stop my application playing a sound if the user has switched the iPhone to silent mode. Where can I read that the phone is in silent mode? Is there some flag I can query? I noticed that some applications ignore the silent mode and some not, while I would have expected all apps to respect that silent is silent !! Any hints or input would be greatly appreciated. Thanks Al