Amit
Amit

Reputation: 7035

Vibrate without sound in ios app

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

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

Please advise

Upvotes: 3

Views: 1008

Answers (2)

Luca
Luca

Reputation: 770

From monotouch-samples this should work:

SystemSound.Vibrate.PlaySystemSound();

Maybe you changed your iPhone Vibration Sound Settings

Upvotes: 4

Yaser
Yaser

Reputation: 408

This should work:

#import <AudioToolbox/AudioToolbox.h> 

//Vibrate iphone 
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);

Upvotes: 0

Related Questions