{ "id": "153844", "key": "TIMOB-20147", "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-12-23T01:40:42.000+0000", "created": "2015-12-15T04:15:06.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "contacts" ], "versions": [], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-23T21:04:44.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": "h4. Steps to reproduce\r\n1. Create titanium classic app\r\n2. Use this sample code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nvar btn3 = Ti.UI.createButton({\r\n\ttitle: 'show Contacts',\r\n\ttop:'15%'\r\n});\r\n\r\nbtn3.addEventListener('click', function(e){\r\n\tTi.Contacts.showContacts({\r\n\t\tcancel: function(e) {\r\n\t\t\talert('cancelled');\r\n\t\t},\r\n\t\tselectedPerson: function(e) {\r\n\t\t\tvar person = e.person;\r\n\t\t\tTi.API.info(person);\r\n\t\t\talert('person selected is ' + person.fullName);\r\n\t\t},\r\n//\t\tselectedProperty: function(e) {\r\n//\t\t\talert('property selected\\n' + e.property +'\\n' + e.label +'\\n'+e.value);\r\n//\t\t\tTi.API.info(e.value);\r\n//\t\t\tTi.API.info(e.person.fullName);\r\n//\t\t\tTi.API.info(e.property);\r\n//\t\t\tTi.API.info(e.value);\r\n//\t\t\tTi.API.info(e.label);\r\n//\t\t}\r\n\t});\r\n});\r\nwin.add(btn3);\r\nwin.open();\r\n{code}\r\n3. Show Contacts\r\n4. Select a person\r\n\r\nh4. Expected Result\r\nalert dialog with person's name shown\r\n\r\nh4. Actual Result\r\nalert dialog with 'no name' shown", "attachment": [], "flagged": false, "summary": "iOS: Ti.Contacts.showContacts() selectedPerson returns empty on iOS 8.4", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 5.2.0.v20151202153633\r\niOS 8.4\r\nXcode 6.4", "closedSprints": [ { "id": 536, "state": "closed", "name": "2015 Sprint 25 SDK", "startDate": "2015-12-05T01:30:40.415Z", "endDate": "2015-12-19T01:30:00.000Z", "completeDate": "2015-12-29T03:19:42.127Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "373097", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/7585\r\nUse the test case provided in the ticket. \r\n\r\nIn iOS 8 presenting contact picker don't need User permission anymore. But in this case we cannot query meta data like recordId. This was not handled when updated to iOS 8 API. So is this issue. Note that person.recordId will be -1 when contacts permission is not granted by User. But once permission is granted, person.recordId will return expected value. \r\n\r\nhttps://developer.apple.com/library/ios/releasenotes/General/RN-iOSSDK-8.0/\r\n", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-16T09:44:54.000+0000", "updated": "2015-12-16T09:44:54.000+0000" }, { "id": "373439", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR and FT approved. Thats Srikanth!", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-23T01:40:36.000+0000", "updated": "2015-12-23T01:40:36.000+0000" }, { "id": "415370", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can verify this ticket as fixed. Tested with the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:04:44.000+0000", "updated": "2017-03-23T21:04:44.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }