{ "id": "152706", "key": "TIMOB-19887", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-12T19:37:41.000+0000", "created": "2015-11-06T19:41:59.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-5.1.0" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [ { "id": "49772", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152691", "key": "TIMOB-19885", "fields": { "summary": "Android 6.0 : Asking for contacts permissions fails with \"one or more permissions denied\" with SDK 5.1.0.v20151104190037", "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": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-27T22:46:42.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Description:\r\n1. There are various issues while you try to get contacts info from android 6.0:\r\n\r\n*Case 1*: Run the code below on android 6.0 device which has contacts:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.addEventListener(\"open\", function(e) {\r\n if (Ti.Contacts.hasContactsPermissions()) {\r\n display();\r\n } else {\r\n Ti.Contacts.requestContactsPermissions(function(e) {\r\n if (e.success === true) {\r\n display(); \r\n } else {\r\n alert(\"Access denied, error: \" + e.error);\r\n }\r\n });\r\n }\r\n});\r\n\r\n\r\nfunction display(){\r\n\tvar singleValue = [\r\n\t 'recordId', 'firstName', 'middleName', 'lastName', 'fullName', 'prefix', 'suffix', \r\n\t 'nickname', 'firstPhonetic', 'middlePhonetic', 'lastPhonetic', 'organization', \r\n\t 'jobTitle', 'department', 'note', 'birthday', 'created', 'modified', 'kind'\r\n\t];\r\n\tvar multiValue = [\r\n\t 'email', 'address', 'phone', 'instantMessage', 'relatedNames', 'date', 'url'\r\n\t];\r\n\tvar people = Ti.Contacts.getAllPeople(3);\r\n\tTi.API.info('Total contacts: ' + people.length);\r\n\tfor (var i=0, ilen=people.length; i