{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/405","labels_url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/405/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/405/events","html_url":"https://github.com/phonegap/phonegap-cli/issues/405","id":41507322,"number":405,"title":"No way to lock iPad orientation to landscape via config.xml","user":{"login":"martenbiehl","id":296533,"avatar_url":"https://avatars.githubusercontent.com/u/296533?v=3","gravatar_id":"","url":"https://api.github.com/users/martenbiehl","html_url":"https://github.com/martenbiehl","followers_url":"https://api.github.com/users/martenbiehl/followers","following_url":"https://api.github.com/users/martenbiehl/following{/other_user}","gists_url":"https://api.github.com/users/martenbiehl/gists{/gist_id}","starred_url":"https://api.github.com/users/martenbiehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martenbiehl/subscriptions","organizations_url":"https://api.github.com/users/martenbiehl/orgs","repos_url":"https://api.github.com/users/martenbiehl/repos","events_url":"https://api.github.com/users/martenbiehl/events{/privacy}","received_events_url":"https://api.github.com/users/martenbiehl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-cli/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/phonegap/phonegap-cli/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/phonegap/phonegap-cli/milestones/25","html_url":"https://github.com/phonegap/phonegap-cli/milestones/4.0.0%20-%20Cordova%20Alignment","labels_url":"https://api.github.com/repos/phonegap/phonegap-cli/milestones/25/labels","id":842706,"number":25,"title":"4.0.0 - Cordova Alignment","description":"# Bring the PhoneGap CLI into full compatibility with Cordova CLI\r\n\r\n- ditch Cordova-Lib as a dependency\r\n- shell out to Cordova for all unrecognized commands\r\n- process all recognized commands through the remaining cli commands\r\n\r\n\r\n# Wishlist\r\n\r\n- remove all 'local' modules entirely\r\n- remove cli/ and phonegap sub directories\r\n- have the ability to clobber any command supported by the CDV-CLI easily (ie provide an implementation file and the CLI knows what to do)\r\n\r\n\r\n-- extending the dead line while the branch is under review --","creator":{"login":"lorinbeer","id":177034,"avatar_url":"https://avatars.githubusercontent.com/u/177034?v=3","gravatar_id":"","url":"https://api.github.com/users/lorinbeer","html_url":"https://github.com/lorinbeer","followers_url":"https://api.github.com/users/lorinbeer/followers","following_url":"https://api.github.com/users/lorinbeer/following{/other_user}","gists_url":"https://api.github.com/users/lorinbeer/gists{/gist_id}","starred_url":"https://api.github.com/users/lorinbeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorinbeer/subscriptions","organizations_url":"https://api.github.com/users/lorinbeer/orgs","repos_url":"https://api.github.com/users/lorinbeer/repos","events_url":"https://api.github.com/users/lorinbeer/events{/privacy}","received_events_url":"https://api.github.com/users/lorinbeer/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":31,"state":"closed","created_at":"2014-10-27T21:22:10Z","updated_at":"2015-01-20T00:49:38Z","due_on":"2015-11-13T08:00:00Z","closed_at":"2015-01-20T00:49:38Z"},"comments":15,"created_at":"2014-08-29T14:44:44Z","updated_at":"2015-07-25T15:19:58Z","closed_at":null,"body":"Hi!\r\n\r\nI can make none of the ways work that are described here http://docs.build.phonegap.com/en_US/2.9.0/configuring_config_file_element.md.html \r\n\r\nI am on version 3.5.0-0.21.14 of phonegap installed via npm.\r\n\r\nTo reproduce:\r\n```\r\nnpm install -g phonegap\r\nphonegap create orientation-test\r\n```\r\n\r\n##1. edit config.xml\r\n`<preference name=\"orientation\" value=\"landscape\" />`\r\n`phonegap build ios`\r\nopen `platforms/ios/HelloWorld/HelloWorld-Info.plist` to check that the setting had no effect\r\n\r\n##2. edit config.xml to contain\r\n```\r\n<gap:config-file platform=\"ios\" parent=\"UISupportedInterfaceOrientations\" overwrite=\"true\">\r\n        <array>\r\n            <string>UIInterfaceOrientationLandscapeLeft</string>\r\n            <string>UIInterfaceOrientationLandscapeRight</string>\r\n        </array>\r\n</gap:config-file>\r\n<gap:config-file platform=\"ios\" parent=\"UISupportedInterfaceOrientations~ipad\" overwrite=\"true\">\r\n        <array>\r\n            <string>UIInterfaceOrientationLandscapeLeft</string>\r\n            <string>UIInterfaceOrientationLandscapeRight</string>\r\n        </array>\r\n</gap:config-file>\r\n```\r\n`phonegap build ios`\r\nopen `platforms/ios/HelloWorld/HelloWorld-Info.plist` to check that the setting had no effect\r\n\r\nIs this a bug or is some information missing from the documentation? I can find no information anywhere online to make this work without editing the pList file directly. Yet, I would rather avoid this to not having to manage multiple configuration files and being able to keep up to date with phonegap.\r\n\r\nThanks\r\nMarten"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/comments/124853089","html_url":"https://github.com/phonegap/phonegap-cli/issues/405#issuecomment-124853089","issue_url":"https://api.github.com/repos/phonegap/phonegap-cli/issues/405","id":124853089,"user":{"login":"Xairoo","id":731894,"avatar_url":"https://avatars.githubusercontent.com/u/731894?v=3","gravatar_id":"","url":"https://api.github.com/users/Xairoo","html_url":"https://github.com/Xairoo","followers_url":"https://api.github.com/users/Xairoo/followers","following_url":"https://api.github.com/users/Xairoo/following{/other_user}","gists_url":"https://api.github.com/users/Xairoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Xairoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xairoo/subscriptions","organizations_url":"https://api.github.com/users/Xairoo/orgs","repos_url":"https://api.github.com/users/Xairoo/repos","events_url":"https://api.github.com/users/Xairoo/events{/privacy}","received_events_url":"https://api.github.com/users/Xairoo/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T15:19:58Z","updated_at":"2015-07-25T15:19:58Z","body":"+8"}}