{ "id": "152216", "key": "AC-475", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-11-04T07:27:51.000+0000", "created": "2015-10-21T01:06:46.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-12-02T08:53:06.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "On a device running Android 6, when the app tries to use the camera to scan the message \"Sorry, the Android camera encountered a problem. You may need to restart the device.\" is shown and the camera cannot be used.", "attachment": [], "flagged": false, "summary": "Ti.Barcode not working on Android 6", "creator": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "subtasks": [], "reporter": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "environment": "Android 6\r\nTi SDK 5.0.2", "comment": { "comments": [ { "id": "368794", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nCan you please send us more info? We need a test case, steps to reproduce the issue and your working environment details.\r\n\r\nThanks.", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2015-11-03T09:00:34.000+0000", "updated": "2015-12-02T08:53:06.000+0000" }, { "id": "371903", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi, \r\nTi.Barcode use camera , camera ask for permission from the user in Android 6.0. So you need to add permission requesting for android 6 .\r\n{code}\r\nif (Ti.Media.hasCameraPermissions()) {\r\n\r\n\r\n\twindow.open();\r\n\r\n\r\n} else { \r\n\r\n\r\n Ti.Media.requestCameraPermissions(function(e) {\r\n\r\n\r\n if (e.success === true) {\r\n\r\n\r\n \t window.open();\r\n\r\n\r\n } else {\r\n\r\n\r\n alert(\"Access denied, error: \" + e.error);\r\n\r\n\r\n }\r\n\r\n\r\n });\r\n\r\n\r\n}\r\n\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2015-12-02T08:52:33.000+0000", "updated": "2015-12-02T08:52:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }