Skip to content

Conversation

@dpogue
Copy link
Member

@dpogue dpogue commented Dec 12, 2013

The documentation states that the Orientation preference in config.xml should apply to all platforms, but this was not true for Android.

This pull request causes the orientation specified in config.xml to be applied to the AndroidManifest.xml file as part of cordova prepare.

@sdiaz
Copy link

sdiaz commented Dec 14, 2013

+1

@agrieve
Copy link
Contributor

agrieve commented Feb 13, 2014

Merged! Thanks!

Please close the pull request.

@dpogue dpogue closed this Feb 13, 2014
@niiamon
Copy link

niiamon commented Apr 7, 2014

This still doesn't work in Cordova CLI 3.4.0-0.1.3. I have <preference name="Orientation" value="landscape" /> in my config.xml. However, what I run the app to an Android device it runs in portrait mode and can be rotated to landscape or portrait mode.

Is there a specific version I need to be using?

@dpogue
Copy link
Member Author

dpogue commented Apr 7, 2014

I belive that's because of a bug in the released version of cordova-cli that causes it to not update preferences (with an error message like Undefined reference: a is not defined)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants