{ "id": "79240", "key": "TIMOB-5006", "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": "12088", "description": "", "name": "Sprint 2011-48", "archived": true, "released": true, "releaseDate": "2011-12-05" }, { "id": "12090", "description": "", "name": "Sprint 2011-50", "archived": true, "released": true, "releaseDate": "2011-12-19" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-23T16:40:49.000+0000", "created": "2011-08-15T09:37:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_orientation", "qe-testadded" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" }, { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "21594", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "102277", "key": "TIMOB-11187", "fields": { "summary": "iOS : Opening iAD in landscape orientation & closing it crashes the app.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14272", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "83973", "key": "TIMOB-6721", "fields": { "summary": "iOS: Ti.UI.iOS.AdView does not properly support landscape settings", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:11.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": "When a device is rotated, then an iAd is openend and closed, you only see a black screen.\r\n\r\nSome users have reported iAd crashing the entire app on iPhone 3G but I did not have one to test and verify. \r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow();\r\n\r\nwin1.orientationModes = [\r\n Titanium.UI.LANDSCAPE_RIGHT,\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.PORTRAIT\r\n];\r\n\r\nvar adView = Ti.UI.iOS.createAdView({\r\n width: 'auto',\r\n height: 'auto',\r\n bottom:-100,\r\n zIndex:100\r\n});\r\nadView.addEventListener('load', function(){\r\n adView.animate({bottom:0, duration:750});\r\n});\r\nwin1.add(adView);\r\nadView.show();\r\n\r\nwin1.open();\r\n{code}", "attachment": [ { "id": "22649", "filename": "iad.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-24T11:03:57.000+0000", "size": 88179, "mimeType": "image/png" }, { "id": "22650", "filename": "iad2.png", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-24T11:03:57.000+0000", "size": 88500, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: iAd rotation bug", "creator": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPod 4GT iOS 4.3.5\r\nSDK: 1.8.0.1.21968ea", "comment": { "comments": [ { "id": "162890", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This bug is invalid. The test ad is a black alpha channel mask. If you insert a backgroundColor onto the adView or the window, you will see the ad just fine and it rotates appropriately on our current build.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-15T15:57:49.000+0000", "updated": "2011-08-15T15:57:49.000+0000" }, { "id": "163698", "author": { "name": "newmediaone", "key": "newmediaone", "displayName": "Peter Janett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have proof of this bug, but it seems to only happen if tabs are used. Here is code that allows you to duplicate the error, as referenced in this support ticket:\r\nhttp://support.appcelerator.com/tickets/APP-934957\r\n\r\n~~~\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nwin1.orientationModes = [\r\n Titanium.UI.LANDSCAPE_RIGHT,\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.PORTRAIT\r\n];\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 1',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\nvar adView = Ti.UI.iOS.createAdView({\r\n width: 'auto',\r\n height: 'auto',\r\n bottom:-100,\r\n zIndex:100\r\n});\r\nadView.addEventListener('load', function(){\r\n adView.animate({bottom:0, duration:750});\r\n alert('iad loaded');\r\n});\r\nwin1.add(adView);\r\nadView.show();\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n~~~\r\n", "updateAuthor": { "name": "newmediaone", "key": "newmediaone", "displayName": "Peter Janett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T18:03:41.000+0000", "updated": "2011-08-22T18:03:41.000+0000" }, { "id": "163873", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, I tested it also on simulator iOS 4.2 and iAd works correctly only for portrait. It doesn't rotate. Reggies solution does not work.\r\n\r\nSample code to replicate this issue: \r\n\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nwin1.orientationModes = [\r\n Titanium.UI.LANDSCAPE_RIGHT,\r\n Titanium.UI.LANDSCAPE_LEFT,\r\n Titanium.UI.PORTRAIT\r\n];\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 1',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\nvar adView = Ti.UI.iOS.createAdView({\r\n width: 'auto',\r\n height: 'auto',\r\n backgroundColor: 'red',\r\n backgroundImage: 'none',\r\n bottom:0,\r\n zIndex:100\r\n});\r\nadView.addEventListener('load', function(){\r\n alert('iad loaded');\r\n});\r\nwin1.add(adView);\r\nadView.show();\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\nI attached the simulators shot on landscape.", "updateAuthor": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-24T10:59:48.000+0000", "updated": "2011-08-24T10:59:48.000+0000" }, { "id": "165009", "author": { "name": "khurram.ali@riksof.com", "key": "khurram.ali@riksof.com", "displayName": "Khurram Ali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I resolved this issue by presenting a blank modal view controller (under a willLeave is true check) in:\r\n\r\n- (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave\r\n\r\nI then dismiss this modal view controller in:\r\n\r\n- (void)bannerViewActionDidFinish:(ADBannerView *)banner", "updateAuthor": { "name": "khurram.ali@riksof.com", "key": "khurram.ali@riksof.com", "displayName": "Khurram Ali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-03T18:28:14.000+0000", "updated": "2011-09-03T18:28:14.000+0000" }, { "id": "170169", "author": { "name": "newmediaone", "key": "newmediaone", "displayName": "Peter Janett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not fixed in 1.7.3. Khurram Ali, can you detail what you changed (What files) to resolve this, as it doesn't seem to be getting put into the updated builds.\r\n\r\nThanks,\r\n\r\nPeter", "updateAuthor": { "name": "newmediaone", "key": "newmediaone", "displayName": "Peter Janett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-23T20:52:28.000+0000", "updated": "2011-10-23T20:52:28.000+0000" }, { "id": "174802", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Testing instructions need to mention that the ad must be dismissed to display the bad visual behavior.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-04T16:08:31.000+0000", "updated": "2011-12-04T16:08:31.000+0000" }, { "id": "175617", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed. Verified on:\r\nSDK: 1.8.0.1.v20111209102124\r\nStudio: 1.0.7.201112080131\r\nOS: OS X Lion\r\nDevices Tested: iPhone Simulator 5.0, iPhone 5.0.1", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-09T15:34:09.000+0000", "updated": "2011-12-09T15:34:09.000+0000" }, { "id": "176176", "author": { "name": "newmediaone", "key": "newmediaone", "displayName": "Peter Janett", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This IS NOT FIXED...\r\n\r\nPlease run the example code above, (Karol Pomaski added a comment - 24/Aug/11 10:59 AM) open the app, rotate to landscape, click and open an iad (test one is fine), then close the iad. Now the app orientation will be opposite of the actual orientation of the device. (If the device is rotated to landscape, the app will load in portrait, and vise versa.)\r\n\r\nPlease keep on this bug, as it's costing me lots of ad revenue, as I opened the ticket back in August.\r\n\r\nThanks SO much!!\r\n\r\nPeter Janett", "updateAuthor": { "name": "newmediaone", "key": "newmediaone", "displayName": "Peter Janett", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-14T18:10:31.000+0000", "updated": "2011-12-14T18:10:31.000+0000" }, { "id": "176269", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I re-tested this against the 1.8.0.1 candidate as the bug is described. The reproduction steps used are:\r\n\r\n# Rotate into landscape\r\n# Click iAd\r\n# Dismiss iAd\r\n\r\n*FAIL*: The screen is blank.\r\n*PASS*: The screen is not blank.\r\n\r\nTesting results were:\r\n\r\n* iPhone sim / 5.0\r\n*# Pass\r\n*# Pass\r\n*# Pass\r\n\r\n* iPod 4GT / 4.3.5\r\n*# Pass\r\n*# Fail\r\n*# Fail\r\n\r\nWe will be re-opening this as a bug against iOS 4.x-only.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-15T14:14:11.000+0000", "updated": "2011-12-15T14:14:11.000+0000" }, { "id": "176270", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this bug against *iOS 4.x only*. iOS 5 has the correct behavior, meaning this is probably an issue with how Apple updates rotation information while iAd is in fullscreen mode.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-15T14:14:54.000+0000", "updated": "2011-12-15T14:14:54.000+0000" }, { "id": "176358", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "pull pending # 1036 against master(1.9.0)", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-16T12:05:00.000+0000", "updated": "2011-12-16T12:05:00.000+0000" }, { "id": "179150", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio 1.0.8.201201101928\r\nTi Mob SDK 1.9.0.v20120111233134\r\nOSX Lion\r\niPhone 4S, iPad 2\r\n\r\nExpected behavior of iAD rotating to landscape is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T17:51:56.000+0000", "updated": "2012-01-12T17:51:56.000+0000" }, { "id": "209592", "author": { "name": "mlyon@gavant.com", "key": "mlyon@gavant.com", "displayName": "Miles Lyon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We are definitely still seeing an issue with this. We have two devices using iOS 5. One is an ipad 2 and the other is an ipad 3. The ipad 2 seems always show the blank screen and the ipad 3 will work in PORTRAIT only and no other orientation. Including portrait upside down.\r\n\r\nI'm not sure on the conclusions in this discussion. Are we saying this is a known issue with ios or that it is actually resolved?", "updateAuthor": { "name": "mlyon@gavant.com", "key": "mlyon@gavant.com", "displayName": "Miles Lyon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T10:08:16.000+0000", "updated": "2012-07-26T10:08:16.000+0000" }, { "id": "212190", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "black screen is reapearing when iad is not in portrait mode. please reinvestigate this bug", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2012-08-06T14:33:22.000+0000", "updated": "2012-08-06T14:33:22.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }