{ "id": "163151", "key": "TIMOB-23889", "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": "2016-09-11T13:50:33.000+0000", "created": "2016-09-09T23:19:48.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-5.5.0" ], "versions": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "issuelinks": [ { "id": "52714", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "161694", "key": "TIMOB-23627", "fields": { "summary": "Calendar, Contacts and Camera can crash on iOS 10 / Xcode 8", "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": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-09-12T18:45:20.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I am seeing app crashes when I use methods from permissions (Calendar, Contacts, Camera (Media), etc) in my apps.\r\nI do not have any log output except from Xcode:\r\n{code}\r\nTermination Reason: TCC, This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.\r\nTriggered by Thread: 5\r\n{code}\r\n\r\n*Steps to reproduce issue*\r\n1. Create a new project\r\n2. Use a Permission's method in the code, I suggest the below\r\n3. Run the app on an iOS 10 device\r\n\r\n*Expected Results*\r\nThe app runs without issue\r\n\r\n*Actual Results*\r\nThe app crashes when the Permission's method is called\r\n\r\n*Notes*\r\nI am able to encounter this issue when checking for media permissions:\r\n{code}\r\nfunction askCameraPermissions(){\r\nif (Ti.Media.hasCameraPermissions()) {\r\n alert(\"Camera Permissions already granted\"); \r\n } else { \r\n Ti.Media.requestCameraPermissions(function(e) {\r\n if (e.success === true) {\r\n alert(\"Camera Permissions Granted\");\r\n } else {\r\n alert(\"Access denied, error: \" + e.error);\r\n }\r\n });\r\n }\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: App crashes on iOS 10 when calling Permisson's methods", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "395818", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-11T10:44:46.000+0000", "updated": "2016-09-11T10:44:46.000+0000" }, { "id": "395827", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as {{Duplicate}} for now, but please let me know your objections if you have some!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-11T13:50:33.000+0000", "updated": "2016-09-11T13:50:33.000+0000" }, { "id": "395924", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate since related ticket is verified.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-12T18:45:20.000+0000", "updated": "2016-09-12T18:45:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }