[
https://issues.apache.org/jira/browse/CB-6069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14499715#comment-14499715
]
Dan Dascalescu commented on CB-6069:
------------------------------------
The [devicemotion API has been published since
2011|http://www.w3.org/TR/orientation-event/].
I'm new to Cordova, so pardon my ignorance, but is there a reason why this
plugin exposes {{navigator.accelerometer}},but not a {{devicemotion}} event?
I'm not the only one confused by this issue - even the author of a mobile
browser shake detection plugin doesn't know what the deal is with Cordova -
https://github.com/alexgibson/shake.js/issues/20
> Alignment with W3C DeviceMotion event
> -------------------------------------
>
> Key: CB-6069
> URL: https://issues.apache.org/jira/browse/CB-6069
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Plugin Device Motion
> Reporter: Dominique Hazael-Massieux
>
> The W3C DeviceMotion event is used by most browsers nowadays to detect
> acceleration: http://dev.w3.org/geo/api/spec-source-orientation.html
> As such, it is already pretty stable (although there are some minor fixes and
> clarifications expected in the upcoming few months).
> It would be nice if the cordova accelerometer plugin would align with it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]