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

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

[~JerryBels] - Sorry if I was not clear.  In the case you described, "portrait" 
would be considered the "default orientation".  You could lock it to another 
orientation such as 'landscape' or 'any'.  After locking it, unlocking it would 
set the orientation back to the default - in this case "portrait".

//(start in portrait via configuration) -> 
lock('any') //all orientations are supported -> 
unlock() //resets to default, which is portrait

> 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
>            Assignee: Tony Homer
>
> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to