cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-plugin-screen-orientation] ahollandusc commented on issue #62: Ionic 5.x/Screen-Orientation lock does not work on iOS platform
Date Wed, 03 Jun 2020 06:51:15 GMT

ahollandusc commented on issue #62:
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/62#issuecomment-637995367


   I had the same problem with the orientation lock working on iphones but not ipad.
   To fix it so I could lock in portrait mode only on both device types:
    
   Edit the generate ios project's Info.plist file and under the keys UISupportedInterfaceOrientations
& UISupportedInterfaceOrientations~ipad I removed all but the option for portrait ending
up with
   
   >&lt;key&gt;UISupportedInterfaceOrientations&lt;/key&gt;
   &lt;array&gt;
   	&lt;string&gt;UIInterfaceOrientationPortrait&lt;/string&gt;
   &lt;/array&gt;
   &lt;key&gt;UISupportedInterfaceOrientations~ipad&lt;/key&gt;
   &lt;array&gt;
   	&lt;string&gt;UIInterfaceOrientationPortrait&lt;/string&gt;
   &lt;/array&gt;


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


Mime
View raw message