Meteor: Mobile orientation in Xcode project after 'meteor build' is incorrect

Created on 1 Jun 2016  路  3Comments  路  Source: meteor/meteor

Meteor 1.3.2.4
OS X El Capitan 10.11.5

When setting the mobile device orientation using Meteor's App.setPreference method, Xcode checks both "Portrait" and "Upside Down" to active instead of just "Portrait." This does not happen inside of the output directory for the android project, only the ios project.

Steps to recreate:

  • Define the orientation within the mobile-config.js file

App.setPreference("orientation", "portrait");

  • Building the project with the following command:

meteor build <build-path> --server <server-url>

  • Open the project output in Xcode
  • Observe: General > Deployment Info

image

Expected Behavior: Portrait should be checked
Actual Behavior: Portrait AND Upside Down are checked

some Mobile has-workaround Bug

Most helpful comment

For me all orientations in xcode are unchecked when I do the following:

App.setPreference("Orientation", "default"); //for android
App.setPreference("Orientation", "all", "ios"); //for ios

I would expect to have all checked in xcode.

All 3 comments

Would try to repro today.

For me all orientations in xcode are unchecked when I do the following:

App.setPreference("Orientation", "default"); //for android
App.setPreference("Orientation", "all", "ios"); //for ios

I would expect to have all checked in xcode.

Meteor has received several Cordova updates since this issue was created. Due to the age of this issue, I'll close it for now. If anyone is still encountering this problem please post back and let us know. Thanks!

Was this page helpful?
0 / 5 - 0 ratings