You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Erik Brommers (JIRA)" <ji...@apache.org> on 2014/04/11 00:49:14 UTC
[jira] [Created] (CB-6434) Default .xcodeproj doesn't change
orientation on iPhone
Erik Brommers created CB-6434:
---------------------------------
Summary: Default .xcodeproj doesn't change orientation on iPhone
Key: CB-6434
URL: https://issues.apache.org/jira/browse/CB-6434
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 3.4.0
Environment: OSX 10.9.2, Cordova cli 3.4.0-0.1.3
Reporter: Erik Brommers
I'm not sure whether this is a bug in the platforms add script or some weird configuration error on my side. I have a phonegap project with some settings in the root www/config.xml:
<preference name="phonegap-version" value="3.3.0" />
<preference name="Orientation" value="default" />
..etc.
When I create and test the ios platform:
$ cordova platforms rm ios
$ cordova platforms add ios
$ cordova emulate ios
It does not respond to the device rotation events on the iPhone hardware, but does respond to the same events if I set the hardware to the iPad. Looking a little deeper, I see that the .xcodeproj file has all device orientations checked under Deployment Info for the iPad, but only Portrait for the iPhone. Selecting all the device orientations and calling:
$ cordova emulate ios
Now the iPhone responds to the orientation changes there as well.
Removing and re-adding the ios platform resets this setting so that only the iPad responds to the orientation changes.
So... I guess my question is whether there is something that can be tweaked by a preference in the www/config.xml, or a bug maybe in the platforms add scripts? Any info would be appreciated. Thanks!
--
This message was sent by Atlassian JIRA
(v6.2#6252)