If this helps someone, I found that the vibrate command would not work while AVAudioRecorderit was recording. Getting around this is very simple. You just need to first stop your recorder and resume it:
[recorder stop];
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);
[recorder record];
It even works if you want to record sound and vibrate in the background with UIBackgroundModes.
jowie source
share