{ "id": "174744", "key": "TIMOB-27804", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2020-03-16T11:33:54.000+0000", "created": "2020-02-18T08:24:56.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "iphone" ], "versions": [], "issuelinks": [ { "id": "58267", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "174769", "key": "MOD-2584", "fields": { "summary": "Ti.Barcode with iOS 13 and Xcode 11 shows in new \"modal view\"", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2020-04-09T09:43:45.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": [], "description": "The front camera and cancel button missing on open barcode camera. \r\n\r\n{code}\r\nTitanium SDK:8.2.1.GA\r\n ti.barcode\r\niOS Device: iPad Mini\r\nversion: 13.3 \r\n{code}\r\n\r\nPlease suggest how to fix this issue \r\n\r\nAttached screenshot ", "attachment": [ { "id": "67278", "filename": "IMG_0976.PNG", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-18T08:24:39.000+0000", "size": 5181818, "mimeType": "image/png" } ], "flagged": false, "summary": "Front camera and cancel button option missing while open camera using ti.barcode module", "creator": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1182, "state": "closed", "name": "2020 Sprint 6", "startDate": "2020-03-16T21:38:00.000Z", "endDate": "2020-03-27T21:38:00.000Z", "completeDate": "2020-03-27T16:02:02.830Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454313", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~shishir.roy] please provide sample code for how you're using ti.barcode so we can troubleshoot", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-02-18T11:32:06.000+0000", "updated": "2020-02-18T11:32:06.000+0000" }, { "id": "454314", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have attached code snippet below:\r\n\r\nNote: The same code is working expected behavior in iOS 11.\r\n\r\n{code:js}\r\nfunction ShowTiBarcodeScanner(controltoUse, lFrom, GetScannedCode, OnCancel)\r\n{\r\n var sFailPoint = \"top\";\r\n var bCalled = false;\r\n var bShowAlertAfterSuccessfulScan = false;\r\n var bScanSuccess = false;\r\n\ttry\r\n\t{\r\n\t\tif(!Ti.Media.hasCameraPermissions())\r\n\t\t{\r\n\t\t\talert(L('msg_no_camera_permission'));\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tvar Barcode = require('ti.barcode');\r\n\t\tBarcode.allowRotation = true;\r\n\t\tBarcode.displayedMessage = ' ';\r\n\t\tBarcode.allowMenu = true;\r\n\t\tBarcode.allowInstructions = false;\r\n\t\tBarcode.useLED = true;\r\n\t\t\r\n\t\r\n\t\tvar overlay = Ti.UI.createView({\r\n\t\t backgroundColor: 'transparent',\r\n\t\t top: 0, right: 0, bottom: 0, left: 0\r\n\t\t});\r\n\t\tvar switchButton = Ti.UI.createButton({\r\n\t\t title: Barcode.useFrontCamera ? L('title_backcamera','Back Camera') : L('title_frontcamera','Front Camera'),\r\n\t\t textAlign: 'center',\r\n\t\t color: '#000', backgroundColor: '#fff', style: 0,\r\n\t\t font: { fontWeight: 'bold', fontSize: 16 },\r\n\t\t borderColor: '#000', borderRadius: 10, borderWidth: 1,\r\n\t\t opacity: 0.5,\r\n\t\t width: 220, height: 30,\r\n\t\t bottom: 10, left:20\r\n\t\t});\r\n\t\tswitchButton.addEventListener('click', function () {\r\n\t\t Barcode.useFrontCamera = !Barcode.useFrontCamera;\r\n\t\t switchButton.title = Barcode.useFrontCamera ? L('title_backcamera','Back Camera') : L('title_frontcamera','Front Camera');\r\n\t\t});\r\n\t\toverlay.add(switchButton);\r\n\t\tvar cancelButton = Ti.UI.createButton({\r\n\t\t title: L('Cancel_title','Cancel'), textAlign: 'center',\r\n\t\t color: '#000', backgroundColor: '#fff', style: 0,\r\n\t\t font: { fontWeight: 'bold', fontSize: 16 },\r\n\t\t borderColor: '#000', borderRadius: 10, borderWidth: 1,\r\n\t\t opacity: 0.5,\r\n\t\t width: 220, height: 30,\r\n\t\t bottom: 10, right:20\r\n\t\t});\r\n\t\tcancelButton.addEventListener('click', function () {\r\n\t\t Barcode.cancel();\r\n\t\t});\r\n\t\toverlay.add(cancelButton);\r\n\t\t\r\n\t\t/**\r\n\t\t * Create a button that will trigger the barcode scanner.\r\n\t\t */\r\n\t\tvar scanCode = Ti.UI.createButton({\r\n\t\t title: 'Scan Code',\r\n\t\t width: 150,\r\n\t\t height: 60,\r\n\t\t top: 20\r\n\t\t});\r\n\t\t\r\n var ScanSuccess = function(e) {\r\n\t bScanSuccess = false;\r\n bCalled = true;\r\n bScanSuccess = true;\r\n cancelButton.fireEvent(\"click\");\r\n\t\t\t};\r\n\r\n\t\tBarcode.addEventListener('error', function (e) {\r\n\t\t alert(L('msg_fail_to_scan') + \":\" + e.message);\r\n\t\t});\r\n Barcode.addEventListener('cancel', function (e) {\r\n try\r\n {\r\n\t Ti.API.info('Cancel received');\r\n\t if (bScanSuccess == false)\r\n\t {\r\n\t \t\tOnCancel(); \t\r\n\t }\r\n }\r\n catch(ex)\r\n {\r\n \r\n }\r\n });\r\n\t\tBarcode.addEventListener('success', function (e) {\r\n\t\t\tScanSuccess({barcode:e.result});\r\n\t\t Ti.API.info('Success called with barcode: ' + e.result);\r\n\t\t});\r\n\t\t\r\n\t\tsetTimeout(function()\r\n\t\t\t{// Note: while the simulator will NOT show a camera stream in the simulator, you may still call \"Barcode.capture\"\r\n\t\t // to test your barcode scanning overlay.\r\n\t\t Barcode.capture({\r\n\t\t animate: false,\r\n\t\t overlay: overlay,\r\n\t\t showCancel: false,\r\n\t\t showRectangle: true,\r\n\t\t keepOpen: true,\r\n\t\t acceptedFormats: [\r\n\t\t Barcode.FORMAT_QR_CODE, Barcode.FORMAT_CODE_39\r\n\t\t ]\r\n\t\t });},5);\r\n\t\t\r\n\t}\r\n\tcatch(ex)\r\n\t{\r\n\t\tTi.API.info(\"error occured in ShowTiBarcodeScanner:\" + ex.message);\r\n\t}\r\n}\r\n{code}", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-02-18T11:49:20.000+0000", "updated": "2020-02-18T14:10:31.000+0000" }, { "id": "454657", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any update on this issue", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-11T09:47:39.000+0000", "updated": "2020-03-11T09:47:39.000+0000" }, { "id": "454676", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~shishir.roy] I believe the issue you're seeing is caused by MOD-2584, on iOS 13 the barcode window will be opened as a modal which is causing the UI content to be shifted slightly. This isn't seen iOS versions lower than 13 as they do not support modal windows.\r\n\r\nAs a workaround while we review that PR, when creating the two buttons, change the {{bottom: 10}} to a larger value.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-03-12T11:10:54.000+0000", "updated": "2020-03-12T11:10:54.000+0000" }, { "id": "454704", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I'm going to close this as a duplicate of MOD-2584", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-03-16T11:33:29.000+0000", "updated": "2020-03-16T11:33:29.000+0000" }, { "id": "455041", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ewan, \r\n\r\nI have checked with ti.barcode-iphone-5.0.0.zip in my application which is provided on the below link.\r\n\r\nhttps://github.com/appcelerator-modules/ti.barcode/pull/121\r\n\r\nBut still, the issue exists. So I wanted to know the compatibility of this module.\r\n\r\nCurrently, I have checked on below environment:\r\niOS: 13\r\nTitanium SDK: 8.2.1.GA\r\nnode js: 8.11.2\r\nXcode: 11\r\n\r\nplease let me know if this issue is fixed with above environment.\r\n\r\nOr I have to must need the below environment:\r\nSDK: 9.0.0.GA\r\nAppc CLI: 8.0.0\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202003181504\r\nXcode: 11.4\r\n\r\n\r\n \r\n\r\n\r\n\r\n", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-09T09:43:45.000+0000", "updated": "2020-04-09T09:43:45.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }