W3C home > Mailing lists > Public > public-device-apis@w3.org > August 2014

Re: Vibration spec and Cordova integration update

From: Marcos Caceres <w3c@marcosc.com>
Date: Mon, 4 Aug 2014 17:21:32 -0400
To: Lisa Seacat DeLuca <ldeluca@us.ibm.com>
Cc: Device APIs Working Group <public-device-apis@w3.org>
Message-ID: <C7AC02BBC2DD444481589C1DB4E6696A@marcosc.com>


On Thursday, July 24, 2014 at 10:13 AM, Lisa Seacat DeLuca wrote:

> Since we didn't have a call this morning I wanted to send out a quick update on where we're at with the Apache Cordova spec alignment for vibration. 
> 
> The IBM team has made all of the changes for test cases and code fixes as well as documentation for the alignment issues identified. These changes should be included in the next release of Apache Cordova. There were a couple issues the team ran into that I wanted to bring up on the list. 
> 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.
> Vibration cancellation - The spec is very explicit about what should cancel a vibrate. Which is either navigator.vibrate(0) or navigator.vibrate([]). So what should navigator.vibrate([0]) do? In Cordova land we also treat navigator.vibrate([0]) as a cancellation. 
> 


Out of interest, can you describe how Cordova implements the WebIDL binding requirements for APIs? IIRC, this was one of the biggest sources of interop issues.
Received on Monday, 4 August 2014 21:20:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:33:11 UTC