{ "id": "171288", "key": "MOD-2404", "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": "20144", "name": "Release 7.2.0", "archived": false, "released": false }, { "id": "20179", "name": "Ti.Barcode 1.10.2", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-07T08:08:01.000+0000", "created": "2018-03-11T14:40:29.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "barcode", "overlay" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-05-07T08:08:11.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": "As seen in this github issue: https://github.com/appcelerator-modules/ti.barcode/issues/64 the overlay is not visible on an iPhone. Same code is working fine on Android\r\n\r\n{code:java}\r\nvar Barcode = require('ti.barcode');\r\n\t\tBarcode.allowMenu = false;\r\n\t\tBarcode.allowInstructions = false;\r\n\t\tBarcode.displayedMessage = ' ';\r\n\t\tBarcode.allowRotation = true;\r\n\r\n\t\tvar overlay = Ti.UI.createView({\r\n\t\t\tbackgroundColor: 'transparent',\r\n\t\t\ttop: 0,\r\n\t\t\tright: 0,\r\n\t\t\tbottom: 0,\r\n\t\t\tleft: 0,\r\n\t\t\twidth: Ti.UI.FILL,\r\n\t\t\theight: Ti.UI.FILL,\r\n\t\t});\r\n\t\tvar lbl = Ti.UI.createLabel({\r\n\t\t\tbottom: 10,\r\n\t\t\tleft: 10,\r\n\t\t\tright: 10,\r\n\t\t\ttextAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n\t\t\ttext: \"text\",\r\n\t\t\tcolor: \"#fff\",\r\n\t\t\tbackgroundColor: \"transparent\",\r\n\t\t\ttouchEnabled: false\r\n\t\t});\r\n\t\toverlay.add(lbl);\r\n\t\tvar cancelButton = Ti.UI.createButton({\r\n\t\t\ttitle: 'X',\r\n\t\t\ttop: 0,\r\n\t\t\tright: 0,\r\n\t\t\twidth: 30,\r\n\t\t\tright: 30,\r\n\t\t\tbackgroundColor: \"transparent\",\r\n\t\t\tcolor: \"#fff\"\r\n\t\t});\r\n\t\tcancelButton.addEventListener('click', function() {\r\n\t\t\tBarcode.cancel();\r\n\t\t});\r\n\t\toverlay.add(cancelButton);\r\n\r\n\t\tBarcode.capture({\r\n\t\t\tanimate: true,\r\n\t\t\toverlay: overlay,\r\n\t\t\tshowCancel: false,\r\n\t\t\tshowRectangle: true,\r\n\t\t\tkeepOpen: false,\r\n\t\t});\r\n\t\tBarcode.addEventListener('success', function(e) {\r\n\t\t\tTi.API.info('Success called with barcode: ' + e.result + \" \" + e.format);\r\n\t\t});\r\n{code}\r\n\r\nThere is another example in the [linked ticket|https://github.com/appcelerator-modules/ti.barcode/issues/64#issuecomment-358098609].\r\n\r\n\r\nti.barcode version: 1.10.1\r\nti sdk: 7.0.2.GA\r\nDevice: iPod Touch", "attachment": [], "flagged": false, "summary": "Ti.Barcode: iOS overlay not visible on iPhone", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "437422", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (titanium_mobile) : https://github.com/appcelerator/titanium_mobile/pull/10029\r\nPR(ti.barcode): https://github.com/appcelerator-modules/ti.barcode/pull/66\r\n\r\nTest Case - \r\nMentioned in ticket.\r\n\r\nNote - \r\nThis ti.barcode pr is dependent on titanium_mobile pr (simply a method exposed).\r\nSo its better if we can merge titanium_mobile pr in 7.2.0.\r\n[~hknoechel] [~amukherjee] ?", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-07T05:32:02.000+0000", "updated": "2018-05-07T05:32:02.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }