{ "id": "122750", "key": "TIMOB-15777", "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": "15711", "description": "2013 Sprint 24", "name": "2013 Sprint 24", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "15712", "description": "2013 Sprint 24 API", "name": "2013 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "15747", "description": "Release 3.1.4", "name": "Release 3.1.4", "archived": true, "released": false }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-02-03T20:09:31.000+0000", "created": "2013-11-21T10:36:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.2.0", "qe-3.2.1", "qe-closed-3.2.0", "regression", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:46:59.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": "Window focus event is not called for the first time when app launches.\r\nThis is not regression occurs for 3.1.3.GA also. \r\n{code}\r\napp.js\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n \r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n url:'win1.js'\r\n});\r\n \r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Win 1',\r\n window:win1\r\n});\r\n \r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff',\r\n url:'win2.js'\r\n});\r\n \r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Win 2',\r\n window:win2\r\n});\r\n\r\n\r\n \r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n \r\ntabGroup.open();\r\n\r\n\r\nwin1.js\r\n\r\nvar win1 = Ti.UI.currentWindow;\r\nwin1.addEventListener('focus',function(e){\r\n alert('test win1');\r\n});\r\n\r\nwin2.js\r\n\r\nvar win2 = Ti.UI.currentWindow;\r\nwin2.addEventListener('focus',function(e){\r\n alert('test win2');\r\n});\r\n\r\n{code}\r\nSteps to reproduce:\r\n1. Copy paste the code in app.js, win1.js and win2.js.\r\n2. Launch the app.\r\n\r\nExpected Result:\r\n2. Alert must pop up as \"test win1\"\r\n\r\nActual Result:\r\n2. No alert message pops up.\r\n\r\nBut on clicking tab 2 alert message pop up and after the focus event works fine.\r\nThis works fine for android.\r\nAlert pops up when first time app launches.", "attachment": [], "flagged": false, "summary": "iOS: Window focus event not called for the first time when window added on tab group", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201311200357\r\nSDK:3.2.0.v20131120142443\r\nalloy: 1.3.0\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-alpha\t\r\ntitanium-code-processor: 1.1.0-alpha\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\nDevice: iphone5S(V7.0.2),Galaxy Note(v2.3.6)\r\n", "comment": { "comments": [ { "id": "280578", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5005", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-21T18:37:02.000+0000", "updated": "2013-11-21T18:37:02.000+0000" }, { "id": "280588", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/5006", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-21T19:03:59.000+0000", "updated": "2013-11-21T19:03:59.000+0000" }, { "id": "281687", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311262027\nTitanium SDK, build: 3.2.0.v20131126144841\nCLI: 3.2.0-beta\nAlloy: 1.3.0-beta\nXcode: 5.0.2\niOS Simulator: iPhone, iPad\niOS Device: iPhone 5S (7.0)\n\nApp successfully builds and installs to device and simulator.\nWhen the app is opened win1 popup is opened automatically.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T19:15:35.000+0000", "updated": "2013-11-27T19:15:35.000+0000" }, { "id": "290841", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Environment:\n\nReopening the issue since not working on latest Build: 3.2.1.v20140130101648\nThis is a regression as it works fine on 3.2.0.GA\n\nNot working on:\nAppc Studio:3.2.1.201401311225\nSdk:3.2.1.v20140130101648\nalloy:1.3.1-cr\ntitanium:3.2.1-beta3\nacs:1.0.12\ntitanium-code-processor:1.1.0\nOsx: Maverick 10.9\nXcode:5.0.2\nDevice:Iphone5c(v7.0.4),Ipod Touch3(v6.1.3)\n\n\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-03T06:45:18.000+0000", "updated": "2014-02-03T06:45:18.000+0000" }, { "id": "290949", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Just tested this with latest 3_2_X and master. Can not reproduce", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-03T20:09:31.000+0000", "updated": "2014-02-03T20:09:31.000+0000" }, { "id": "414496", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:46:59.000+0000", "updated": "2017-03-21T21:46:59.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }