How to perform different Device Behaviour [ sound or vibrate] on some action occur in iOS8+?

117 Views Asked by At

I want to perform different device behaviour like sound,vibrate on some action occur.

exa. Once notification (Interactive notification) is arrive in the app and device will start vibrating or some different device behaviour will occur.I am using VoIP push service in my app. Is it possible ?

Thanks.

1

There are 1 best solutions below

0
iDeveloper On BEST ANSWER

I got my answer. If i want to vibrate device on some action occur than this one line of code i need to set and to make it vibrate more second i need to put in a loop.

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)

But this is depends on user device settings.