【发布时间】:2015-10-19 10:19:53
【问题描述】:
我在根目录下的 config.xml 中添加了以下内容
<preference name="orientation" value="default" />
但似乎没有效果,应用卡在纵向模式。我还确保禁用方向锁定。
有什么想法吗?
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.ameba.mobile.api" android-versionCode="5" version="1.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="SplashScreen" value="splash" />
<preference name="SplashScreenDelay" value="3000" />
.......
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" version="1" />
<access origin="*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<preference name="orientation" value="default" />
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>
【问题讨论】: