RE: Vibration spec and Cordova integration update

Adrian & DAP team~

Here's how Cordova is handling the Windows limitations on vibration 
length.  Rather than throw an error, if the vibration time is less than 1, 
the device vibrates for a length of 1.  If the vibration time is 5000 or 
more, the time is truncated to 5000.

This is documented within the vibration plugin docs:

Please let me know if you see any issues with the documentation,


Lisa Seacat DeLuca
Mobile Engineer | t: +415.787.4589 | | | | | | 

From:   Adrian Bateman <>
To:     Lisa Seacat DeLuca/San Francisco/IBM@IBMUS, Device APIs Working 
Group <>
Date:   08/06/2014 12:08 PM
Subject:        RE: Vibration spec and Cordova integration update

On Thursday, July 24, 2014 7:13 AM, Lisa Seacat DeLuca wrote:
> Windows Phone - when a vibration duration value is entered that is over 
5000 the windows
> platform ignores the event.  Within Cordova we will document this 
shortcoming.  If
> someone has a connection with the windows team it would be interesting 
to get their
> take on this.  They might not be aware.  I would expect it to at least 
vibrate for 5000
> and then not acknowledge anything larger if that is their intent. 

The Windows Phone behaviour is documented in MSDN:

The API throws an exception for out of range arguments. It sounds like you 
are not catching
the exception?



Received on Thursday, 7 August 2014 18:21:07 UTC