코드바 3.5.0-0.2.6 (마지막 안정 버전)을 사용하고 있습니다. iPad 기기의 방향을 고정시키는 데 문제가 있습니다. iPhone에서 제대로 작동하지만 iPad에서는 방향이 고정되지 않습니다.iPad에서 코르도바 잠금 장치 방향이 잘못되었습니다.
페이지가 아닌 전체 앱을 잠그고 싶습니다.
이 내 현재 config.xml에 있습니다 : 생성 된 PLIST 파일처럼 보이는
<?xml version="1.0" encoding="utf-8"?>
<widget id="com.domain"
version="version"
xmlns="http://www.w3.org/ns/widgets">
<name>xxx</name>
<description>Lorem ipsum</description>
<access origin="*"/>
<author email="[email protected]" href="https://x.com">x</author>
<content src="index.html?platform=cordova"/>
<feature ...></feature>
<preference name="permissions" value="none"/>
<preference name="orientation" value="portrait"/>
<preference name="show-splash-screen-spinner" value="true"/>
<preference name="auto-hide-splash-screen" value="true"/>
<preference name="prerendered-icon" value="true"/>
<preference name="disallowoverscroll" value="true"/>
<preference name="webviewbounce" value="false"/>
<preference name="StatusBarOverlaysWebView" value="false"/>
<preference name="StatusBarBackgroundColor" value="#000000"/>
</widget>
:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations¨ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
이것은 Cordova의 버그로 인한 것입니다 - https://issues.apache.org/jira/browse/CB-6026 아직 수정되지 않은 더 큰 버그가 있습니다 - https : // issues.apache.org/jira/browse/CB-6462 – Mauro