I want to vibrate iOS device through code.
I have used the following methods. But I am not being able to do that.
1)
AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
2)
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
When I run my game on ipod or ipad.