I'm working for my app that has to be integrated vibration on button click. I've added AudioToolBox framework to support for sound and vibration. I did try to make vibrate in my device about less than 1 sec (500ms) as per requirement but I got failed result since there were no methods to passing the value as user required. There were only two inbuilt methods available for Audio sound play and vibrate.
- AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
- AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
I've googled and found the function called "AudioServicesPlaySystemSoundWithVibration" but this seems implicit method and not available for the developer. it shows the error implicit declaration of function is invalid C99. Any assistance on this query would be greatly appreciated.