objective c - issue while vibrating iPhone ios sdk -


i want vibrate , flash light simultaneously.but when use following code flash light.

if (some condition) {     audioservicesplaysystemsound(ksystemsoundid_vibrate);     [self settorch:yes]; } 

but when use

audioservicesplaysystemsound(ksystemsoundid_vibrate); 

my phone vibrates.

i unable find issue.

may useful you

find gonna vibrate device alert user? read first

both functions vibrate iphone. when use first function on devices don’t support vibration, plays beep sound. second function on other hand nothing on unsupported devices. if going vibrate device continuously, alert, common sense says, use function 2.

audioservicesplayalertsound(ksystemsoundid_vibrate); audioservicesplaysystemsound(ksystemsoundid_vibrate); 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -