Does Vibrate work only when the phone is disconnected?

I use AudioServicesPlaySystemSound ( kSystemSoundID_Vibrate ) to vibrate the phone, but it only works with a silent phone. Any thoughts on why this would be?

+4
source share
2 answers

I use this in my application (a little difference, as you will see), and it works all the time. Make sure you do not call if the device does not vibrate. This is not a failure, but my application editor complained.

 AudioServicesPlayAlertSound(kSystemSoundID_Vibrate); 
+2
source

I know this question is old, but for any future people, my problem was that I had a vibrating switch "off" when my phone was not silent. You can change this in Settings> Sounds.

+2
source

Source: https://habr.com/ru/post/1337616/


All Articles