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

Tony Homer commented on CB-11425:
---------------------------------

[~TaeKwonJoe] -
The fact that the behavior is not consistent between Android and iOS is a bug, 
but it's the Android behavior that is incorrect.
According to [the current working draft of the 
spec|http://www.w3.org/TR/screen-orientation/#dom-screenorientation-unlock]:
{quote}
When the unlock() method is invoked, the user agent must run the steps to lock 
the orientation of the responsible document to the responsible document's 
default orientation.
{quote}

The current release of the plugin is loosely based on an old version of the 
spec and perhaps in the older version of the spec, the Android behavior would 
have been correct, but going forward we will seek to conform to the latest 
version of the spec.

According to the current spec, the way to do what you want to do would be to 
lock the orientation to 'any'.
This does not work in the current release, but it is planned that the next 
release will support this behavior.



> iOS Orientation Unlock Behavior Inconsistent with Android
> ---------------------------------------------------------
>
>                 Key: CB-11425
>                 URL: https://issues.apache.org/jira/browse/CB-11425
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Screen Orientation
>    Affects Versions: 1.4.2
>         Environment: Cordova 4.0.0 (iOS 3.8.0)
> Screen Orientation Plugin 1.4.2
> iOS 9.3.2
> Android 5.0.1
>            Reporter: Joe Meeks
>
> When setting the supported interface orientation to only portrait and running 
> the deployed app on iOS and Android devices, the screen.unlockOrientation() 
> method enables landscape orientation rotation on only Android but not iOS.
> When setting the supported interface orientation to both portrait and 
> landscape and running the deployed app on iOS and Android devices, the 
> screen.unlockOrientation() method enables landscape orientation rotation on 
> both Android and iOS.
> Configuring the app as portrait only and then programmatically unlocking and 
> enabling landscape orientation is desirable for single-orientation splash 
> screen display and preventing this other rotation bug:
> https://issues.apache.org/jira/browse/CB-11423



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to