{ "id": "126459", "key": "TIMOB-16782", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-07T06:12:35.000+0000", "created": "2014-02-15T01:56:50.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "BlackBerry", "look1" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-14T21:08:39.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h6.Issue description\r\nEvents open, focus event not woking on Ti.UI.Window for BB10. To replicate just keep clicking Open & Close buttons, back'n forth. \r\n\r\nh6.Check code example\r\n{code}\r\nTi.API.info('Loading app.js');\r\n\r\nvar masterWindow = Ti.UI.createWindow({\r\n\ttitle : 'Master Window',\r\n\tbarColor : '#000000',\r\n\tbackgroundColor : 'green'\r\n});\r\nmasterWindow.addEventListener('focus', function() {\r\n\tTi.API.info('Master Window focused');\r\n});\r\n\r\nmasterWindow.addEventListener('open', function() {\r\n\tTi.API.info('Master Window opened');\r\n});\r\n\r\nmasterWindow.addEventListener('close', function() {\r\n\tTi.API.info('Master Window closed');\r\n});\r\n\r\nvar detailWindow = Ti.UI.createWindow({\r\n\ttitle : 'Detail Window',\r\n\tbackgroundColor : '#ffffff'\r\n});\r\n\r\ndetailWindow.addEventListener('focus', function() {\r\n\tTi.API.info('Detail window focused');\r\n});\r\ndetailWindow.addEventListener('open', function() {\r\n\tTi.API.info('Detail window opened');\r\n});\r\ndetailWindow.addEventListener('close', function() {\r\n\tTi.API.info('Detail window closed');\r\n});\r\n\r\nvar btnClose = Ti.UI.createButton({\r\n\ttitle : 'Close'\r\n});\r\nbtnClose.addEventListener('click', function() {\r\n\tdetailWindow.close();\r\n});\r\ndetailWindow.add(btnClose);\r\n\r\nvar btnOpen = Ti.UI.createButton({\r\n\ttitle : 'Open'\r\n});\r\n\r\nbtnOpen.addEventListener('click', function() {\r\n\tdetailWindow.open();\r\n});\r\nmasterWindow.add(btnOpen);\r\n\r\nmasterWindow.open();\r\n{code}\r\n\r\nh6.Console output\r\nFrom time to time iOS fires Window events consistently.\r\n{code}\r\n[INFO] : Loading app.js\r\n[DEBUG] : Application booted in 112.212002 ms\r\n[INFO] : Master Window opened\r\n[INFO] : Master Window focused\r\n[INFO] : Detail window opened\r\n[INFO] : Detail window focused\r\n[INFO] : Detail window closed\r\n[INFO] : Master Window focused\r\n[DEBUG] : Loading: /Users/egomez/Library/Application Support/iPhone Simulator/7.1/Applications/224D5BC6-B644-43FE-8678-89C63A0C3A30/BlackBerryTests.app/_app_props_.json, Resource: _app_props__json\r\n[INFO] : Detail window opened\r\n[INFO] : Detail window focused\r\n[INFO] : Detail window closed\r\n[INFO] : Master Window focused\r\n{code}\r\n\r\nBlackBerry isn't firing Window focus events and Master Window Open event is only fired once.\r\n{code}\r\n[INFO] Loading app.js\r\n[INFO] Master Window opened\r\n\r\n[INFO] Detail window opened\r\n\r\n[INFO] Detail window closed\r\n\r\n[INFO] Detail window opened\r\n\r\n[INFO] Detail window closed\r\n{code}", "attachment": [], "flagged": false, "summary": "BlackBerry: Ti.UI.Window events not fired", "creator": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "environment": "SDK 3.3.0.v20140327144704\r\nCLI 3.2.1\r\nMomentics.app/target_10_2_0_1155", "comment": { "comments": [ { "id": "303229", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/218", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-01T21:29:29.000+0000", "updated": "2014-05-01T21:29:29.000+0000" }, { "id": "412328", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as resolved.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T21:08:39.000+0000", "updated": "2017-03-14T21:08:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }