Play sound on iPhone even in silent mode [duplicate]
It’s not advisable, but who am I to say you can’t do it. You may have a good reason to be playing sound. If you are using Audio Sessions, then include <AVFoundation/AVFoundation.h> at the start of your file and [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: nil]; should do the trick. Note if you play music or … Read more