Vibration without sound in ios app

Is there a way I can vibrate the iphone without playing sound? So far, I have been able to vibrate using only sound. I tried to follow but both play sound with vibration

SystemSound.Vibrate.PlayAlertSound ();
SystemSound.Vibrate.PlaySystemSound();

      

Please inform

+3


source to share


2 answers


From monotouch-samples, this should work:

SystemSound.Vibrate.PlaySystemSound();

      



You may have changed your iPhone sound settings iPhone

+3


source


This should work:



#import <AudioToolbox/AudioToolbox.h> 

//Vibrate iphone 
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);

      

0


source







All Articles