{ "id": "172948", "key": "TIMOB-26795", "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": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-07-16T22:02:57.000+0000", "created": "2019-02-01T11:04:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "camera", "ios", "overlay" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-07-16T22:03:00.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": "On click of simple label/button, we open the camera and one overlay is added on the camera view to show close/capture/gallery icons. \r\nFollowing are the steps to reproduce the issue.\r\n\r\n Case 1:\r\n* Open the application.\r\n* Click on the label to open the camera.\r\n* Keep app in the background for 1 or 2 minutes.\r\n* Open again\r\n* When we click Close button on the camera overlay, It is not clickable.\r\n\r\n Case 2:\r\n* Open the application\r\n* Click on the label to open the camera.\r\n* Keep app in the foreground for few minutes.\r\n* Same here, when we click Close button on the camera overlay, It is not clickable.", "attachment": [ { "id": "66124", "filename": "cameraIssue.zip", "author": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-01T11:03:47.000+0000", "size": 750767, "mimeType": "application/zip" }, { "id": "66136", "filename": "index.js", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-06T19:16:16.000+0000", "size": 4742, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS: Event listener on overlay is not working for camera when camera is kept idle for a few minutes", "creator": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium SDK - 7.5.0.GA\r\n* Appcelerator CLI version -7.0.7\r\n* MAC OS version-10.13.6\r\n* Node.js- 8.9.1\r\n* Xcode-10.0", "closedSprints": [ { "id": 1153, "state": "closed", "name": "2019 Sprint 15", "startDate": "2019-07-15T18:30:38.331Z", "endDate": "2019-07-28T18:30:00.000Z", "completeDate": "2019-07-29T15:34:51.860Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "445813", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello [~shumne],\r\n\r\nThanks for reporting this. Are you experiencing this on all iOS devices or a specific device on your end?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-03T10:04:09.000+0000", "updated": "2019-02-03T10:04:09.000+0000" }, { "id": "445818", "author": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Rakhi,\r\nWe are facing this issue on all iOS devices.", "updateAuthor": { "name": "shumne", "key": "shumne", "displayName": "shumne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-04T05:33:21.000+0000", "updated": "2019-02-04T05:33:21.000+0000" }, { "id": "445888", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A quick solution for this issue is -\r\n Create 'overlay' once and use it every launch of camera. Which means create overlay outside of 'handleCamera' function.\r\nI have attached updated index.js.\r\nPlease let me know if it works for you. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-06T19:16:23.000+0000", "updated": "2019-02-06T19:16:23.000+0000" }, { "id": "445917", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/10685\r\n\r\nTest Case -\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nwin.addEventListener('click', function(){\r\n onGalleryOverlay();\r\n});\r\n\r\nfunction onGalleryOverlay() {\r\nvar overlay = Ti.UI.createView({\r\n height: Ti.UI.FILL,\r\n width: Ti.UI.FILL\r\n});\r\nvar closeBtn = Ti.UI.createButton({\r\n width: \"80dp\",\r\n height: \"80dp\",\r\n backgroundColor: \"yellow\",\r\n top: \"20dp\",\r\n right: \"20dp\"\r\n});\r\ncloseBtn.addEventListener(\"click\", function() {\r\n Ti.Media.hideCamera();\r\n});\r\n\r\noverlay.addEventListener(\"click\", function() {\r\n Ti.API.info('ovelay clicked');\r\n Ti.Media.hideCamera();\r\n});\r\n\r\noverlay.add(closeBtn);\r\n Ti.Media.showCamera({\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_VIDEO],\r\n showControls: false,\r\n overlay: overlay,\r\n saveToPhotoGallery : true,\r\n autohide : false,\r\n\r\n success:function(e) {\r\n console.log(\"\\n success\");\r\n },\r\n cancel: function() {\r\n console.log(\"cancel\");\r\n },\r\n error:function(error) {\r\n console.log(\"error\");\r\n }\r\n });\r\n}\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-07T17:57:08.000+0000", "updated": "2019-02-07T17:57:08.000+0000" }, { "id": "446013", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, Awaiting for Merge to become available on Github. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-12T15:50:52.000+0000", "updated": "2019-02-12T15:50:52.000+0000" }, { "id": "446443", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK version 8.1.0.v20190301040201.\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10685", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-01T15:25:00.000+0000", "updated": "2019-03-01T15:25:00.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }