{ "id": "106305", "key": "TIMOB-12029", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-11T21:17:44.000+0000", "created": "2012-12-11T21:49:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-closed-3.2.2", "supportTeam" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-03-10T11:06:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The Ti.Media.openPhotoGallery() does not work on iPad only when the app is set to landscape-only orientation on tiapp.xml, It works fine in portrait mode.\r\n\r\nSteps to reproduce:\r\n1. Load the below app.js and make the given changes in tiapp.xml.\r\n2. Install the app on a device and click on here button\r\n\r\nExpected result: It should open up the gallery\r\n\r\nActual Result: It does not open up the gallery\r\nh4.app.js\r\n{code}\r\nvar btn = Ti.UI.createButton({\r\n title:'here'\r\n});\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ccc',\r\n rightNavButton: btn,\r\n orientationModes: [Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT]\r\n});\r\n\r\n\r\nbtn.addEventListener('click', function(){\r\n Ti.Media.openPhotoGallery({\r\n popoverView: this\r\n });\r\n});\r\n\r\nwin.open({\r\n modal: true\r\n});\r\n{code}\r\n\r\nh4.tiapp.xml\r\n{code}\r\n\r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iPad - OpenPhotoGallery does not work when Orientation mode is Landscape.", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5, 7.0 , Ti SDK 2.1.4 GA, Ti SDK 2.1.3, 3.2.0.GA", "comment": { "comments": [ { "id": "231032", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This appears to be an iOS bug rather than Titanium. The UIImagePickerController allows for all four orientations, and apparently it relies somehow on the top most view controller's orientation.\n\nI created a \"hello world\" native app and when locked in one orientation the app crashed while trying to present the popover with the image gallery. After reading a bit about this on [StackOverflow|http://stackoverflow.com/questions/12540597/supported-orientations-has-no-common-orientation-with-the-application-and-shoul], I added these likes of code to the MediaModule.m to extend it and it started to work as expected.\n{code}\n\n// This category (i.e. class extension) is a workaround to get the\n// Image PickerController to appear in landscape mode.\n@interface UIImagePickerController(Nonrotating)\n- (BOOL)shouldAutorotate;\n@end\n\n@implementation UIImagePickerController(Nonrotating)\n\n- (BOOL)shouldAutorotate {\n return NO;\n}\n\n@end\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-12T15:18:57.000+0000", "updated": "2012-12-12T15:18:57.000+0000" }, { "id": "243890", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\niOS iPhone Simulator: iOS SDK version: 6.0\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T10:45:07.000+0000", "updated": "2013-03-25T10:45:07.000+0000" }, { "id": "292453", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing since the issue is not reproducible anymore since TISDK 3.2 or higher.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T21:17:44.000+0000", "updated": "2014-02-11T21:17:44.000+0000" }, { "id": "296288", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tested with both the codes provided in the Description and comments.Issue is not reproducible using below environment:\r\n\r\nEnvironment:\r\nAppc Studio: 3.2.2.201402280732\r\nSdk: 3.2.2.v20140221161255\r\nacs: 1.0.14\r\nnpm: 1.3.2\r\nalloy:1.3.1\r\ntitanium:3.2.1\r\ntitanium-code-processor:1.1.0\r\nXcode: 5.1-beta5\r\nOsx: Maverick(10.9.2)\r\nDevice: iPad 3 (iOS 7.1) and iPhone 5S(iOS 7.1)\r\n\r\nOpenPhotoGallery is working fine with Landscape orientation mode.Hence closing the issue.\r\n", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-10T11:06:10.000+0000", "updated": "2014-03-10T11:06:10.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }