peitschie commented on issue #1593:
URL: https://github.com/apache/cordova-ios/issues/1593#issuecomment-3924309277

   Just reporting in... I'm trying something similar, but for me this works 
correctly (portrait only on phones... tablet I'm allowing both portrait and 
landscape).
   
   In my `config.xml` I have:
   ```
   <widget ...>
       <preference name="Orientation" value="portrait" />
       <platform name="ios">
           <config-file target="*-Info.plist" 
parent="UISupportedInterfaceOrientations~ipad">
               <array>
                   <string>UIInterfaceOrientationPortrait</string>
                   <string>UIInterfaceOrientationPortraitUpsideDown</string>
                   <string>UIInterfaceOrientationLandscapeLeft</string>
                   <string>UIInterfaceOrientationLandscapeRight</string>
               </array>
           </config-file>
       </platform>
   </widget>
   ```
   
   This results in exactly what you'd expect:
   
   <img width="596" height="284" alt="Image" 
src="https://github.com/user-attachments/assets/912fa772-62b5-408a-b10b-54289dd44131";
 />


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to