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

[jira] [Commented] (CB-14079) window.screen.orientation.unlock() not working correctly in iOS 11

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

Wojciech Trocki commented on CB-14079:
--------------------------------------

[~zabojad] If you do something like this:
{code}
function onDeviceReady(){
  window.orientation.lock('portrait')
}

function onPortraitPageLoaded(){
  window.orientation.unlock()
}
{code}

Does that work for you?

> window.screen.orientation.unlock() not working correctly in iOS 11
> ------------------------------------------------------------------
>
>                 Key: CB-14079
>                 URL: https://issues.apache.org/jira/browse/CB-14079
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-screen-orientation
>            Reporter: Thomas Fétiveau
>            Priority: Major
>
> Hi !
> I'm having the following problem on iOS 11 + wkwebview + cordova-plugin-screen-orientation v3.0.1:
> My app is by default in portait mode. One page in my application call `window.screen.orientation.unlock()` when it shows up. This won't work until I go to the system settings to unlock orientation and call `window.screen.orientation.unlock()` once again...
> Calling once again `window.screen.orientation.unlock()` should not be necessary!
> Can you please fix it?
> Thanks



--
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