Control vibration for our application irrespective of mobile state

46 views Asked by At

Can we control vibration mode of mobile phone for our application.I mean we cab turn on/Off vibration that should change for our app itself.

Can we do that in latest ios version.

1

There are 1 answers

0
Pradumna Patil On

You can use

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); 

Note that you need to add the AudioToolbox framework and import the following header file:

import <AudioToolbox/AudioServices.h>

Hope it helps.