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

后端 未结 9 635
暖寄归人
暖寄归人 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:24

    If you want to restrict to portrait mode only on all devices you should add this line to the config.xml in your projects root folder.

    
    

    After that, please rebuild the platform by typing below text in command line:

    ionic build
    

提交回复
热议问题