{
"id": "171468",
"key": "TIMOB-25942",
"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": "20238",
"description": "",
"name": "Release 7.5.0",
"archived": false,
"released": true,
"releaseDate": "2018-11-15"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2018-09-27T06:39:37.000+0000",
"created": "2018-04-06T13:32:59.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [
"ios11"
],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2018-10-16T10:01:49.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": "Hello,\r\n\r\nWe are seeing a screen orientation problem as windows are being open from a root navigation modal window. \r\n\r\n*Steps to reproduce:*\r\n\r\n1. Open the sample application in [link|https://drive.google.com/file/d/1n6lNK6bDwtQBDekMOAQE4mjoqjZeKpgk/view?usp=sharing] or use the below-provided code. \r\n2. Run the application in an iOS simulator using below code Or \r\n3. Run the sample application in the simulator. \r\n4. Switch the simulator's device orientation to \"UPSIDE DOWN\" \r\n5. Click on the link on the main app screen labeled \"Launch Nav Root Window\" \r\n6. Once the window titled \"Modal 1\" window is opened, then click the \"Next\" nav button \r\n7. The window titled \"Modal 2\" should not have the correct orientation. \r\n\r\n*Test Code:*\r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n*Modal1.xml, Modal3.xml, Modal3.xml, Modal4.xml, Modal5.xml*\r\n{code}\r\n//Modal1.xml\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n//Modal2.xml\r\n\r\n\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\r\n//Modal3.xml\r\n\r\n\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\r\n//Modal4.xml\r\n\r\n\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\r\n//Modal5.xml\r\n\r\n\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\r\n{code}\r\n*Modal1.js, Modal3.js, Modal3.js, Modal4.js, Modal5.js*\r\n{code}\r\n//Modal1.js\r\nvar args = $.args;\r\nfunction onNext()\r\n{\r\n\tvar modal2 = Alloy.createController(\"Modal2\").getView();\r\n\tAlloy.Globals.navRoot.openWindow(modal2);\r\n}\r\n//Modal2.js\r\nvar args = $.args;\r\nfunction onNext()\r\n{\r\n\tvar modal2 = Alloy.createController(\"Modal2\").getView();\r\n\tAlloy.Globals.navRoot.openWindow(modal2);\r\n}\r\n//Modal3.js\r\nvar args = $.args;\r\nfunction onNext()\r\n{\r\n\tvar modal3 = Alloy.createController(\"Modal3\").getView();\r\n\tAlloy.Globals.navRoot.openWindow(modal3);\r\n}\r\n\r\n//Modal4.js\r\nvar args = $.args;\r\nfunction onNext()\r\n{\r\n\tvar modal4 = Alloy.createController(\"Modal4\").getView();\r\n\tAlloy.Globals.navRoot.openWindow(modal4);\r\n}\r\n//Modal5.js\r\nvar args = $.args;\r\nfunction onNext()\r\n{\r\n\tvar modal5 = Alloy.createController(\"Modal5\").getView();\r\n\tAlloy.Globals.navRoot.openWindow(modal5);\r\n}\r\n{code}\r\n\r\ntiapp.xml\r\n{code}\r\n\r\n true\r\n true\r\n \r\n \r\n UISupportedInterfaceOrientations~iphone\r\n \r\n UIInterfaceOrientationPortrait\r\n UIInterfaceOrientationPortraitUpsideDown\r\n UIInterfaceOrientationLandscapeLeft\r\n UIInterfaceOrientationLandscapeRight\r\n \r\n UISupportedInterfaceOrientations~ipad\r\n \r\n UIInterfaceOrientationPortrait\r\n UIInterfaceOrientationPortraitUpsideDown\r\n UIInterfaceOrientationLandscapeLeft\r\n UIInterfaceOrientationLandscapeRight\r\n \r\n UIRequiresPersistentWiFi\r\n \r\n UIPrerenderedIcon\r\n \r\n UIStatusBarHidden\r\n \r\n UIStatusBarStyle\r\n UIStatusBarStyleDefault\r\n \r\n \r\n \r\n{code}\r\n\r\n*Test Environment:*\r\nUsing latest SDK 7.1.0.GA, 7.0.1.GA \r\nLatest CLI 7.0.2\r\n\r\nThe Screen orientation not working in navigation window on iPhone.\r\n\r\nThanks",
"attachment": [
{
"id": "65176",
"filename": "statusbar_screenshot.png",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-05-16T07:58:50.000+0000",
"size": 30198,
"mimeType": "image/png"
},
{
"id": "65026",
"filename": "Step1.png",
"author": {
"name": "mrahman",
"key": "mrahman",
"displayName": "Mostafizur Rahman",
"active": true,
"timeZone": "Asia/Dhaka"
},
"created": "2018-04-06T13:36:31.000+0000",
"size": 2783331,
"mimeType": "image/png"
},
{
"id": "65027",
"filename": "Step2.png",
"author": {
"name": "mrahman",
"key": "mrahman",
"displayName": "Mostafizur Rahman",
"active": true,
"timeZone": "Asia/Dhaka"
},
"created": "2018-04-06T13:34:49.000+0000",
"size": 719210,
"mimeType": "image/png"
},
{
"id": "65028",
"filename": "Step3.png",
"author": {
"name": "mrahman",
"key": "mrahman",
"displayName": "Mostafizur Rahman",
"active": true,
"timeZone": "Asia/Dhaka"
},
"created": "2018-04-06T13:34:55.000+0000",
"size": 1516323,
"mimeType": "image/png"
},
{
"id": "65175",
"filename": "TestNavigationBar.zip",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-05-16T07:59:23.000+0000",
"size": 85638,
"mimeType": "application/zip"
}
],
"flagged": false,
"summary": "iOS 11: Screen orientation not working in navigation window",
"creator": {
"name": "mrahman",
"key": "mrahman",
"displayName": "Mostafizur Rahman",
"active": true,
"timeZone": "Asia/Dhaka"
},
"subtasks": [],
"reporter": {
"name": "mrahman",
"key": "mrahman",
"displayName": "Mostafizur Rahman",
"active": true,
"timeZone": "Asia/Dhaka"
},
"environment": "iOS, Screen Orientation, Navigation window",
"closedSprints": [
{
"id": 1073,
"state": "closed",
"name": "2018 Sprint 19 SDK",
"startDate": "2018-09-09T21:02:56.422Z",
"endDate": "2018-09-23T21:02:00.000Z",
"completeDate": "2018-09-23T22:28:10.932Z",
"originBoardId": 114
},
{
"id": 1058,
"state": "closed",
"name": "2018 Sprint 16 SDK",
"startDate": "2018-07-29T22:26:06.486Z",
"endDate": "2018-08-12T22:26:00.000Z",
"completeDate": "2018-08-13T17:38:16.757Z",
"originBoardId": 114
},
{
"id": 1045,
"state": "closed",
"name": "2018 Sprint 13 SDK",
"startDate": "2018-06-17T20:47:13.621Z",
"endDate": "2018-07-01T20:47:00.000Z",
"completeDate": "2018-07-02T18:40:05.029Z",
"originBoardId": 114
},
{
"id": 1078,
"state": "closed",
"name": "2018 Sprint 20 SDK",
"startDate": "2018-09-23T16:57:58.349Z",
"endDate": "2018-10-07T16:57:00.000Z",
"completeDate": "2018-10-07T23:31:40.476Z",
"originBoardId": 114
},
{
"id": 1065,
"state": "closed",
"name": "2016 Sprint 17 SDK",
"startDate": "2018-08-13T17:39:36.846Z",
"endDate": "2018-08-27T17:39:00.000Z",
"completeDate": "2018-08-29T16:10:57.013Z",
"originBoardId": 114
},
{
"id": 1050,
"state": "closed",
"name": "2018 Sprint 14 SDK",
"startDate": "2018-07-01T18:40:57.193Z",
"endDate": "2018-07-15T18:40:00.000Z",
"completeDate": "2018-07-16T03:27:08.720Z",
"originBoardId": 114
},
{
"id": 1035,
"state": "closed",
"name": "2018 Sprint 11 SDK",
"startDate": "2018-05-20T20:57:43.542Z",
"endDate": "2018-06-03T20:57:00.000Z",
"completeDate": "2018-06-04T15:13:14.425Z",
"originBoardId": 114
},
{
"id": 1053,
"state": "closed",
"name": "2018 Sprint 15 SDK",
"startDate": "2018-07-15T21:52:05.453Z",
"endDate": "2018-07-29T21:52:00.000Z",
"completeDate": "2018-07-29T22:25:11.723Z",
"originBoardId": 114
},
{
"id": 1070,
"state": "closed",
"name": "2018 Sprint 18 SDK",
"startDate": "2018-08-26T16:14:35.297Z",
"endDate": "2018-09-09T16:14:00.000Z",
"completeDate": "2018-09-11T20:59:21.495Z",
"originBoardId": 114
},
{
"id": 1039,
"state": "closed",
"name": "2018 Sprint 12 SDK",
"startDate": "2018-06-03T15:22:23.401Z",
"endDate": "2018-06-17T15:22:00.000Z",
"completeDate": "2018-06-18T20:45:36.363Z",
"originBoardId": 114
}
],
"comment": {
"comments": [
{
"id": "436589",
"author": {
"name": "hknoechel",
"key": "hansknoechel",
"displayName": "Hans Knöchel",
"active": true,
"timeZone": "Europe/Berlin"
},
"body": "There are some weird UI glitches here:\r\n* There a two navigation bars, which is invalid\r\n* I do not see any reference on modal windows in the code. Usually, modal windows are opened within {{nav.open(\\{ modal: true\\});}} which requires a new navigation window instance for the modal window\r\n\r\nIt would help to have a classic project to debug, if possible.",
"updateAuthor": {
"name": "hknoechel",
"key": "hansknoechel",
"displayName": "Hans Knöchel",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2018-04-06T19:30:37.000+0000",
"updated": "2018-04-08T14:01:58.000+0000"
},
{
"id": "437633",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Simple Test Case -\r\n\r\n{code:java}\r\nvar win2 = Titanium.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Red Window'\r\n});\r\n \r\nvar win1 = Titanium.UI.iOS.createNavigationWindow({\r\n window: win2\r\n});\r\n \r\nvar win3 = Titanium.UI.createWindow({\r\n backgroundColor: 'blue',\r\n title: 'Blue Window',\r\n});\r\n \r\nvar button = Titanium.UI.createButton({\r\n title: 'Open Blue Window'\r\n});\r\nbutton.addEventListener('click', function(){\r\n win1.openWindow(win3, {animated:true});\r\n});\r\n \r\nwin2.add(button);\r\nvar button2 = Titanium.UI.createButton({\r\n title: 'Open Gray Window'\r\n});\r\nbutton2.addEventListener('click', function(){\r\n\twin1.openWindow(win4, {animated:true});\r\n});\r\n \r\nwin3.add(button2);\r\nwin1.open();\r\n \r\nvar win4 = Titanium.UI.createWindow({\r\n backgroundColor: 'gray',\r\n title: 'Gray Window',\r\n});\r\n \r\nvar button4 = Titanium.UI.createButton({\r\n title: 'Close Gray Window'\r\n});\r\nwin4.add(button4);\r\n \r\nbutton4.addEventListener('click', function(){\r\n win1.closeWindow(win4, {animated:false}); \r\n});\r\n{code}",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-05-15T09:09:40.000+0000",
"updated": "2018-05-15T09:09:40.000+0000"
},
{
"id": "437634",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "This problem is happening on iOS 11.x. On iOS 10 and 9 it is working fine.",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-05-15T09:11:53.000+0000",
"updated": "2018-05-15T09:11:53.000+0000"
},
{
"id": "437661",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "On more investigation I found that there is bug from apple side in iOS 11.x with status bar orientation. Bug is -\r\nIn UIInterfaceOrientationPortraitUpsideDown, if we push a view controller in navigation controller, status bar moves to bottom of screen.\r\n\r\nI have attached a \"TestNavigationBar.zip\", a native app and statusbar_screenshot.png in this ticket.\r\n\r\n\r\nIn Titanium orientation handling, we check the status bar orientation and force rotate the screen. As status bar orientation is coming wrong from native side, we rotate the screen. Due to this navigation bar also moves to bottom of screen.\r\n\r\nI have filed a bug to apple.\r\nhttps://openradar.appspot.com/radar?id=4936322665938944\r\n\r\nOnce it get fixed from apple side, it will automatically fixed.",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-05-16T07:58:10.000+0000",
"updated": "2018-05-16T08:00:58.000+0000"
},
{
"id": "438382",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "PR - https://github.com/appcelerator/titanium_mobile/pull/10104",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-06-13T08:15:38.000+0000",
"updated": "2018-06-13T08:15:38.000+0000"
},
{
"id": "441502",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "I verified this issue in iOS 12 beta. The problem does not exist in iOS 12. It is fixed by Apple. Thanks!",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-09-12T11:45:30.000+0000",
"updated": "2018-09-12T11:45:30.000+0000"
},
{
"id": "442607",
"author": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "[~vijaysingh] I can see the correct screen orientations but in the description of the ticket at step 7 it says \"The window titled \"Modal 2\" should not have the correct orientation.\" but the text is still the correct way round? ",
"updateAuthor": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-10-15T11:49:04.000+0000",
"updated": "2018-10-15T11:49:04.000+0000"
},
{
"id": "442635",
"author": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "[~smohammed]\r\n1. Step 7 of ticket means in case of error it should not have correct orientation and with this pr that should be fixed.\r\n2. This problem is only in iOS 11.x. So in iOS >=12 and iOS <=10 this problem is not there with and without fix.",
"updateAuthor": {
"name": "vijaysingh",
"key": "vijaysingh",
"displayName": "Vijay Singh",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-10-16T03:54:32.000+0000",
"updated": "2018-10-16T03:54:32.000+0000"
},
{
"id": "442648",
"author": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "*Closing ticket.* Fix verified in SDK Version {{7.5.0.v20181010051919}} correct screen orientations can be seen. \r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.1.0.201808080937\r\niPhone 6 Sim (11.3)\r\nAPPC CLI: 7.0.6\r\nOperating System Name: Mac OS Mojave\r\nOperating System Version: 10.14\r\nNode.js Version: 8.9.1\r\nXcode 10.0\r\n{code}\r\n",
"updateAuthor": {
"name": "smohammed",
"key": "smohammed",
"displayName": "Samir Mohammed",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2018-10-16T10:01:38.000+0000",
"updated": "2018-10-16T10:01:38.000+0000"
}
],
"maxResults": 10,
"total": 10,
"startAt": 0
}
}
}