I recently switched over from Phongegap Build to cordova locally. I cannot for the life of me figure out how to get the orientation in iOS to allow all. It's driving me insane.
I've tried all the documented methods in the config such as:
<platform name="ios">
<preference name="orientation" value="all" />
</platform>
But that doesn't work. I've also tried to manually set the plist attributes via a plugin, but that doesn't seem to do the trick either. What am I missing here? When I open up the .ipa file, the plist in there only has the following for the orientation attributes:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
From my understanding, there should be four like so:
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
The preference names are case-insensitive, the correct entry has to be:
<preference name="Orientation" value="all" />
docs: http://cordova.apache.org/docs/en/dev/config_ref/index.html#preference
The cordova-custom-config is great if you need specific values for iPad and iPhone.