Over a million developers have joined DZone.

Make Your Windows Phone Vibrate with PhoneGap

DZone's Guide to

Make Your Windows Phone Vibrate with PhoneGap

· Mobile Zone
Free Resource

Launching an app doesn’t need to be daunting. Whether you’re just getting started or need a refresher on mobile app testing best practices, this guide is your resource! Brought to you in partnership with Perfecto

The Windows Phone SDK in Silverlight provides the class VibrateController which the developer can use to make the phone vibrate.

All that the developer has to do is create an instance of the VibrateController and call the start method with the timespan.

VibrateController vibrate = VibrateController.Default;

Check How to make a Windows Phone 7 Vibrate using C# to learn more.

Similarly, PhoneGap provides the notification.vibrate method to make your Windows Phone vibrate.

The navigator.notification.vibrate takes one argument i.e the milliseconds to vibrate your Windows Phone.


<script type="text/javascript">

function Button1_onclick()

{ navigator.notification.vibrate(20000) }



Keep up with the latest DevTest Jargon with the latest Mobile DevTest Dictionary. Brought to you in partnership with Perfecto.


Published at DZone with permission of Senthil Kumar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}