cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Veenstra (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-13933) Add an extra orientation event for the real orientation even when locked
Date Thu, 01 Mar 2018 16:08:00 GMT
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


Mime
View raw message