You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Maximilian Frercksen (JIRA)" <ji...@apache.org> on 2017/11/30 07:31:00 UTC

[jira] [Commented] (CB-13605) devicemotion event not fired correclty

    [ https://issues.apache.org/jira/browse/CB-13605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16272277#comment-16272277 ] 

Maximilian Frercksen commented on CB-13605:
-------------------------------------------

[~bowserj] The event that is not fired is the built-in browser device motion event.

The following JavaScript code, that does not use the cordova plugin, works using a browser but does not work when using a cordova app on the device:

window.addEventListener("devicemotion",processEvent, true);

function processEvent(e) {
//exec code
}


> devicemotion event not fired correclty
> --------------------------------------
>
>                 Key: CB-13605
>                 URL: https://issues.apache.org/jira/browse/CB-13605
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: 7.0.0
>         Environment: Issue appears on some Android devices:
>   - Moto Z (Android 7.1.1)
>   - Galaxy S6 (Android 7.0)
>            Reporter: Mario Semelka
>            Assignee: Joe Bowser
>
> The 'devicemotion' event ist not fired correctly on some Android devices in an Android build. In that cases, the event is fired only once after the listener is registered. This is especially critical for VR development as most VR cameras use this event for controls.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org