{ "id": "172019", "key": "MOD-2445", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20233", "name": "Ti.Barcode iOS 2.0.1", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-13T07:05:51.000+0000", "created": "2018-08-06T09:58:00.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "iOS" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-13T07:05:51.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14511", "name": "Barcode" } ], "description": "As discussed [here| https://github.com/appcelerator-modules/ti.barcode/issues/77] camera overlay view randomly disappear after a period of time if you leave the scanner open but don't scan a code.\r\nSometimes 5 seconds after opening, other times up to a minute, very random. Thought it might have been to do with touch or orientation, but have been unable to reproduce it reliably.\r\n\r\n", "attachment": [], "flagged": false, "summary": " ti.barcode iOS : Camera overlay view randomly disappear after a period of time if you leave the scanner open but don't scan a code", "creator": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "439813", "author": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{code:javascript}\r\nvar Barcode = require('ti.barcode');\r\nBarcode.allowRotation = false;\r\nBarcode.useLED = false;\r\n\r\nvar $ = this;\r\n$.capture = function() {\r\n var overlay = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n opacity: 0.4\r\n });\r\n \r\n Barcode.capture({\r\n animate: false,\r\n overlay: overlay,\r\n showCancel: false,\r\n showRectangle: false,\r\n keepOpen: false,\r\n allowMenu: false,\r\n allowInstructions: false\r\n });\r\n};\r\n \r\n$.openScanner = function() {\r\n $.capture();\r\n};\r\n \r\n$.closeScanner = function() {\r\n Barcode.cancel();\r\n};\r\n \r\n$.showResult = function(e) {\r\n console.log(JSON.stringify(e));\r\n};\r\n \r\nBarcode.addEventListener('success', $.showResult);\r\n \r\n$.openScanner();\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T13:58:15.000+0000", "updated": "2018-08-08T08:03:40.000+0000" }, { "id": "439814", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "It is probably GC'd, so we need to retain it's proxy status with {{rememberProxy}} and {{forgetProxy}} (later) in [here|https://github.com/appcelerator-modules/ti.barcode/blob/master/ios/Classes/TiBarcodeModule.m#L81], similar to overlays in [{{Ti.Media.showCamera(args)}}|https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/MediaModule.m#L938].", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-06T14:52:03.000+0000", "updated": "2018-08-06T14:52:03.000+0000" }, { "id": "440572", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You are right [~hknoechel].\r\n\r\nPR - https://github.com/appcelerator-modules/ti.barcode/pull/78\r\n\r\n[~jfinnigan] Can you please verify using [Pre-release 2.0.1| https://github.com/appcelerator-modules/ti.barcode/releases/tag/ios-2.0.1]", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-08T07:59:08.000+0000", "updated": "2018-08-08T08:04:28.000+0000" }, { "id": "440605", "author": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Overlays are no longer disappearing! However, any onClick events on the overlays aren't firing, these were working previously, however may have been pre-2.0.0 rather than an new bug introduced with this fix?", "updateAuthor": { "name": "jfinnigan", "key": "jfinnigan", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-09T10:49:14.000+0000", "updated": "2018-08-09T10:49:14.000+0000" }, { "id": "440632", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Click event on any button on overlay view is firing. But it is not firing from overlay itself. It is not due to this change but it is from 2.0.0. Before 2.0.0 it's working fine. I'll look in this. Thanks for reporting [~jfinnigan]. ", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-10T05:41:13.000+0000", "updated": "2018-08-10T05:41:13.000+0000" }, { "id": "440681", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed the overlay 'click' event issue and updated the [Pre-release 2.0.1|https://github.com/appcelerator-modules/ti.barcode/releases/tag/ios-2.0.1] .", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-13T04:18:25.000+0000", "updated": "2018-08-13T04:18:25.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }