I just started using ionic framework and would like to know how do I set the orientation of the ionic app for android and ios either to: portrait, landscape or both (portrait and landscape)?
I tried changing config.xml
<preference name="orientation" value="landscape" />
<preference name="orientation" value="default" />
and none of them worked. It is always in portrait mode.
I used both CLI ionic and cordova for IOS and I found out that both CLI is not changing:
<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>
I am using Ionic CLI version 1.0.14 and Cordova CLI version 3.5.0-0.2.4.
I am using Ionic 1.0.0-beta.8
Is this a bug in Ionic or Cordova? How do I fix this?