{ "id": "131626", "key": "MOD-1909", "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": "19903", "name": "Ti.Barcode 1.10.1", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-10T06:24:30.000+0000", "created": "2014-06-12T00:02:20.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "TCSupport" ], "versions": [], "issuelinks": [ { "id": "42323", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "138406", "key": "PM-1", "fields": { "summary": "Support for Open-Source Modules", "status": { "description": "", "name": "Done", "id": "10019", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "3", "description": "A task that needs to be done.", "name": "Task", "subtask": false } } } }, { "id": "55862", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "169654", "key": "MOD-2354", "fields": { "summary": "iOS: Replace ZxingWidget Library used in Ti.Barcode with new library, which are getting updated frequently", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:49:30.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": "14511", "name": "Barcode" } ], "description": "h5. Problem Description\r\nI'm having an issue with the Ti.Barcode module where when the device is rotated the barcode scanning screen rotates also, even though device orientation is set to Ti.UI.PORTRAIT in the tiapp.xml file\r\n\r\nh5. TESTING ENVIRONMENT\r\n \r\nTi CLI 3.3.0\r\nTitanium SDK: 3.3.0.GA and 3.2.X.GA\r\niPhone and iPad Device\r\n \r\nh5. TEST CODE\r\n \r\n{code:title=app.js|borderStyle=solid}\r\n \r\n var Barcode = require('ti.barcode');\r\nBarcode.allowRotation = true;\r\nBarcode.displayedMessage = '';\r\nBarcode.useLED = true;\r\n\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tcontentWidth : 'auto',\r\n\tcontentHeight : 'auto',\r\n\ttop : 0,\r\n\tshowVerticalScrollIndicator : true,\r\n\tlayout : 'vertical'\r\n});\r\n\r\nvar scanCode = Ti.UI.createButton({\r\n\ttitle : 'Scan Code',\r\n\twidth : 200,\r\n\theight : 60,\r\n\ttop : 20\r\n});\r\n\r\nscanCode.addEventListener('click', function() {\r\n\r\n\tBarcode.capture({\r\n\t\tanimate : true,\r\n\t\tshowCancel : false,\r\n\t\tshowRectangle : false,\r\n\t\tkeepOpen : true\r\n\t});\r\n});\r\nscrollView.add(scanCode);\r\n\r\n\r\n\r\nwindow.add(scrollView);\r\nwindow.open(); \r\n{code}\r\n \r\n{code:title=tiapp.xml|borderStyle=solid}\r\n \r\n ~~~~~~~~~~~~~~~~~~\r\n\r\n\r\nTi.UI.PORTRAIT\r\n\r\n\r\nTi.UI.PORTRAIT\r\n\r\n\r\n \r\n\r\nti.barcode\r\n\r\n ~~~~~~~~~~~\r\n{code}\r\n \r\nh5. STEP TO TEST\r\n \r\n- Create a new project\r\n- Update \"app.js\" file with \"app.js\" code segment given above.\r\n- Download the barcode module zip file [ti.barcode-iphone-1.8.3.zip|https://github.com/appcelerator/titanium_modules/blob/master/barcode/mobile/ios/ti.barcode-iphone-1.8.3.zip?raw=true]\r\n- Extract the zip file, copy the module folder to your app\r\n- Include \"tiapp.xml\" code segment given above to the \"tiapp.xml\" file\r\n- Run the app in iPhone or iPad device.\r\n- Touch \"scan Code\" to see the barcode scanning screen\r\n- Rotate the device and see problem\r\n \r\n \r\nh5. OBSERVED RESULT\r\n \r\nRotating the device is causing the rotation of barcode scanning screen, even though the orientation was fixed to portrait.\r\n\r\n", "attachment": [ { "id": "48873", "filename": "BarcodeBug.png", "author": { "name": "isaac.payne@ticketdirect.co.nz", "key": "isaac.payne@ticketdirect.co.nz", "displayName": "Isaac Payne", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2014-06-12T00:02:20.000+0000", "size": 281359, "mimeType": "image/png" }, { "id": "52063", "filename": "Scanner_rotation.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-10-20T16:13:53.000+0000", "size": 245626, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Ti.Barcode Rotation issue", "creator": { "name": "isaac.payne@ticketdirect.co.nz", "key": "isaac.payne@ticketdirect.co.nz", "displayName": "Isaac Payne", "active": true, "timeZone": "Pacific/Auckland" }, "subtasks": [], "reporter": { "name": "isaac.payne@ticketdirect.co.nz", "key": "isaac.payne@ticketdirect.co.nz", "displayName": "Isaac Payne", "active": true, "timeZone": "Pacific/Auckland" }, "environment": "Appc CLI 5.2.2\r\nModule Version: 1.9.1\r\nTitanium SDK: 5.2.2.GA \r\niPhone device version: v 9.3.2", "comment": { "comments": [ { "id": "311188", "author": { "name": "isaac.payne@ticketdirect.co.nz", "key": "isaac.payne@ticketdirect.co.nz", "displayName": "Isaac Payne", "active": true, "timeZone": "Pacific/Auckland" }, "body": "Any updates here? It's been over 2 weeks with no reply.", "updateAuthor": { "name": "isaac.payne@ticketdirect.co.nz", "key": "isaac.payne@ticketdirect.co.nz", "displayName": "Isaac Payne", "active": true, "timeZone": "Pacific/Auckland" }, "created": "2014-06-26T23:27:18.000+0000", "updated": "2014-06-26T23:27:18.000+0000" }, { "id": "315127", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Thanks for your report! The MOD team will set the priority here. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-21T21:44:43.000+0000", "updated": "2014-07-21T21:44:43.000+0000" }, { "id": "328627", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It looks like this issue is in the ZXing lib and may be solved by updating to the latest version via TIMODOPEN-219", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-20T17:33:19.000+0000", "updated": "2014-10-20T17:33:19.000+0000" }, { "id": "329750", "author": { "name": "linkito87", "key": "linkito87", "displayName": "Hector Santos", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anybody knows how solve this problem? I have it too.", "updateAuthor": { "name": "linkito87", "key": "linkito87", "displayName": "Hector Santos", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-28T15:20:53.000+0000", "updated": "2014-10-28T15:20:53.000+0000" }, { "id": "336306", "author": { "name": "benjamin", "key": "benjamin", "displayName": "benjamin", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello,\r\n\r\nI found a correction for this problem :\r\nhttp://exygy.com/how-to-modify-ti-barcode-to-correct-two-annoying-behaviors-in-ios-and-android/\r\n\r\nIf it can be help !\r\n\r\nRegards.", "updateAuthor": { "name": "benjamin", "key": "benjamin", "displayName": "benjamin", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-12-14T21:45:03.000+0000", "updated": "2014-12-14T21:45:03.000+0000" }, { "id": "341464", "author": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This rotation issue has a very good chance at being a problem that exists and needs to be solved within the glue between the lib and titanium vs being something that is solved just by an upgrade to the lib version. \r\n\r\nJon Alter, what is your source / reference for your comment about thinking it is a problem with the ZXing lib so we can better understand this?", "updateAuthor": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-30T19:31:15.000+0000", "updated": "2015-01-30T19:31:15.000+0000" }, { "id": "344264", "author": { "name": "zpapp", "key": "zpapp", "displayName": "Zsombor Papp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can confirm that this problem still exists with the latest version, 1.9.1.\r\n\r\nIn addition, I noticed three other, even more severe issues:\r\n\r\n1) When an overlay is not specified, the camera preview comes solid black the first time the app is started. If I put the app into the background and immediately bring it back up, the camera preview works as expected.\r\n\r\n2) Overlay touch events and orientation change events are only processed when there is a barcode in front of the camera. This means that the buttons on the overlay as well as the overlay orientation seem to be frozen until a barcode comes into focus of the camera, at which point they are retroactively processed.\r\n\r\n3) When the camera preview and overlay are rotated into landscape mode, their dimensions don't update to landscape mode so part of the screen will be black and part of the overlay will be off screen.\r\n\r\nI am not sure if these are all new problems; you can see problem #3 in the screenshots attached to the description back in June so obviously that's not a new problem.\r\n\r\nConsidering these problems, it seems to me fixing just the rotation issue is not going to make this module useable.\r\n\r\nAre we being asked to fix all these problems?\r\n\r\nIf so, I would like to update the description of this JIRA ticket, or perhaps other one, MOD-1998, to make this objective clear.\r\n\r\nAlso, with regards to problem #3, is disabling orientation changes altogether an acceptable solution, or do we expect the module to support landscape orientation depending on configuration?", "updateAuthor": { "name": "zpapp", "key": "zpapp", "displayName": "Zsombor Papp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-25T00:49:06.000+0000", "updated": "2015-02-25T00:49:06.000+0000" }, { "id": "346828", "author": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~egomez], [~rblalock]\r\n\r\nPlease review Zsombor's comments made on the 24th of Feb and provide your response along with direction, expectations and priority.\r\n", "updateAuthor": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-21T01:15:50.000+0000", "updated": "2015-03-21T01:15:50.000+0000" }, { "id": "387205", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello!,\r\n\r\n[~cng], I have tested that module and getting the same behaviour as like [~zpapp] (previous comment).\r\n\r\nMy testing env:\r\nAppc CLI 5.2.2 \r\nModule Version: 1.9.1 \r\nTitanium SDK: 5.2.2.GA \r\niPhone device version: v 9.3.2\r\n\r\nAny updates or workaround for this issue?", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-31T19:57:45.000+0000", "updated": "2016-05-31T19:57:45.000+0000" }, { "id": "417121", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~vijaysingh] Ti.Barcode was revived from the archive, do you want to take a look into this issue? Looks *very* related to the camera overlay issue on Ti.Media recently, so a quick fix. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-04-10T17:21:24.000+0000", "updated": "2017-04-10T17:21:24.000+0000" }, { "id": "417257", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried with latest ti.barcode (1.10.0) module. It is working fine to me .\r\n[~ewieber] Can you please verify once and let me know , if issue is still reproducible at your end. Thanks.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-12T10:11:41.000+0000", "updated": "2017-04-12T10:11:41.000+0000" }, { "id": "417418", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am able to reproduce it with latest master (1.10.0), see the [attached example|https://www.dropbox.com/s/cs08b3xhabmivqz/test_barcode.zip?dl=1] project for details.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-04-14T14:45:03.000+0000", "updated": "2017-04-14T14:45:03.000+0000" }, { "id": "417554", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator-modules/ti.barcode/pull/53\r\n\r\nTest Case :\r\n\r\n\r\n{code:java}\r\nvar Barcode = require('ti.barcode');\r\n\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\nvar scrollView = Ti.UI.createScrollView({\r\n contentWidth : 'auto',\r\n contentHeight : 'auto',\r\n top : 0,\r\n showVerticalScrollIndicator : true,\r\n layout : 'vertical'\r\n});\r\n\r\nvar scanCode = Ti.UI.createButton({\r\n title : 'Scan Code',\r\n width : 200,\r\n height : 60,\r\n top : 20\r\n});\r\n\r\nscanCode.addEventListener('click', function() {\r\n\r\n Barcode.capture();\r\n});\r\nscrollView.add(scanCode);\r\n\r\nwindow.add(scrollView);\r\nwindow.open(); \r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-18T06:51:15.000+0000", "updated": "2017-04-18T06:51:15.000+0000" }, { "id": "426441", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~vijaysingh] Please also draft the new release 1.10.1 on Github.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-10T06:26:04.000+0000", "updated": "2017-08-10T06:26:04.000+0000" }, { "id": "427009", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In addition to above PR there is minor fix for build in PR -\r\nhttps://github.com/appcelerator-modules/ti.barcode/pull/54\r\n\r\n[~hknoechel] Can you please review the same. Thanks.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-22T08:20:00.000+0000", "updated": "2017-08-22T08:20:00.000+0000" }, { "id": "440198", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:30.000+0000", "updated": "2018-08-06T17:49:30.000+0000" } ], "maxResults": 26, "total": 26, "startAt": 0 } } }