{ "id": "174500", "key": "AC-6451", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-12-27T12:41:50.000+0000", "created": "2019-12-01T11:00:38.000+0000", "labels": [ "iphone" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-12-27T12:41:50.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Below is the sample code:\r\n\r\nfunction accessContacts() {\r\n\tif (!Ti.Contacts.hasContactsPermissions()) {\r\n\t Ti.Contacts.requestContactsPermissions(function(e) {\r\n\t if (e.success) {\r\n\t processContacts();\r\n\t } else {\r\n\t return;\r\n\t }\r\n\t });\r\n\t}else{\r\n\t\tprocessContacts();\r\n\t}\r\n}\r\nfunction processContacts(){\t\t\r\n\ttry{\r\n\t var contacts;\r\n\tcontacts = Ti.Contacts.getAllPeople();\r\n Ti.API.info(\"contacts \"+ JSON.stringify(contacts));\r\n\t \r\n\t}catch(ex){\r\n\r\n\t}finally{\r\n\r\n\t}\t\r\n \r\n}", "attachment": [], "flagged": false, "summary": "Ti.Contacts.getAllPeople() returns undefined", "creator": { "name": "efrancis", "key": "efrancis", "displayName": "Emmanuel Francis", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "efrancis", "key": "efrancis", "displayName": "Emmanuel Francis", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Xcode: Version 11.2.1\r\nAppcelerator SDK 8.3.0.GA\r\nSimulator: 13.2.2", "comment": { "comments": [ { "id": "452992", "author": { "name": "efrancis", "key": "efrancis", "displayName": "Emmanuel Francis", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Please close the ticket.\r\nFor iOS 13, needs to set Ti.Contacts.includeNote = false; or set key 'com.apple.developer.contacts.notes' to 'true' in entitelements section of tiapp.xml.\r\n\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.Contacts-property-includeNote\r\n ", "updateAuthor": { "name": "efrancis", "key": "efrancis", "displayName": "Emmanuel Francis", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2019-12-03T04:45:22.000+0000", "updated": "2019-12-03T04:45:22.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }