I am using below code for play system sound in iOS, It is working perfect when iPhone is not in silent mode. But when i put iPhone in silent mode system sound is not play
NSError *activationErr = nil;
NSError *_error = nil;
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: &_error];
[[AVAudioSession sharedInstance] setActive:YES error:&activationErr];
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
AudioServicesPlaySystemSound(systemSoundID);
Please help me out