How to restrict app to portrait mode only in ionic for all platforms?

后端 未结 9 693
暖寄归人
暖寄归人 2020-12-23 08:37

I\'m working on Ionic/Cordova, I added this to androidManifest.xml but this didn\'t work for me and app is still showing in both ways

android:sc         


        
9条回答
  •  感动是毒
    2020-12-23 09:33

    According to https://cordova.apache.org/docs/en/4.0.0/config_ref/#global-preferences,

    Orientation allows you to lock orientation and prevent the interface from rotating in response to changes in orientation. Possible values are default, landscape, or portrait. Example:

    Be aware that these values are case sensitive, it is "Orientation", not "orientation".

提交回复
热议问题