You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Mark Veenstra (JIRA)" <ji...@apache.org> on 2018/03/01 16:08:00 UTC

[jira] [Created] (CB-13933) Add an extra orientation event for the real orientation even when locked

Mark Veenstra created CB-13933:
----------------------------------

             Summary: Add an extra orientation event for the real orientation even when locked
                 Key: CB-13933
                 URL: https://issues.apache.org/jira/browse/CB-13933
             Project: Apache Cordova
          Issue Type: Improvement
          Components: cordova-plugin-screen-orientation
         Environment: On Android when you open the camera app for example and you turn it from portrait to landscape you can see the layout is locked to portrait, but the icons will turn.

We would like to do the same in Cordova. But the current plugin does not fire the real orientation of the device once it is locked. Also the plugin fires the orientation from JS point of view instead of native point of view.

For Android it should be possible to fire the "real" orientation even when locked to an orientation. See: [https://stackoverflow.com/a/45437200/1800695]

Would it be a good idea to add / trigger a JS event from the native indicating the real orientation of the device so you can turn buttons in the HTML based on that event, but stick to the portrait layout?
            Reporter: Mark Veenstra






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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