[
https://issues.apache.org/jira/browse/CB-6434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13972198#comment-13972198
]
Shazron Abdullah commented on CB-6434:
--------------------------------------
No, there is no bug here -- this is the default for the template - iPhone only
has portrait orientation, iPad has all.
Unfortunately this is a deficiency in the docs for "Orientation":
https://issues.apache.org/jira/browse/CB-6182
> 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)