cordova app強制橫屏 ,config.xml配置橫屏
配置代碼:
<preference name="Orientation" value="landscape" />
Orientation的值
Orientation的默認值是default。
可使用的值有:default, landscape, portait
Orientation可以將設備鎖定方向,不受設備旋轉影響。
對於IOS支持landscape&portait,可以使用平臺專屬值『all』
跟多配置參考官網:
https://cordova.apache.org/docs/en/dev/config_ref/index.html#preference
更多:
Cordova config.xml配置WebView全屏瀏覽
Error validating package name. Must look like: `com.company.Name`. Currently is: `xxxx`