{ "id": "64177", "key": "TIMOB-3545", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T18:56:34.000+0000", "created": "2011-04-15T03:46:30.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T18:56:34.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": "{html}

It is not possible to create (or edit) a contact with an own,\ncustom label.

\n

var newContact = Titanium.Contacts.createPerson();
\nnewContact.firstName = 'Bill';
\nnewContact.lastName = 'Bluescreen';
\nnewContact.phone = {'customlabel':['01601234567']};
\nTitanium.Contacts.save();

\n

Instead of \"customlabel\" the number is saved in the phonebook as\n'phone', which means there is no label set.

\n

When using the picker (Ti.Contacts.showContacts) to select this\nphone, the app crashes. Note that not only Titanium creates\ncontacts without labels.

\n

Titanium Developer: 1.2.2 mobilesdk: 1.6.1, 1.7.0(Apr 7 2011\n12:07 r9b1fb306) iOS 4.3

{html}", "attachment": [], "flagged": false, "summary": "iOS: Contacts: custom phone labels", "creator": { "name": "demybrenzel", "key": "demybrenzel", "displayName": "Demy Brenzel", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "demybrenzel", "key": "demybrenzel", "displayName": "Demy Brenzel", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "343250", "author": { "name": "reyjexter", "key": "reyjexter", "displayName": "Rey Bumalay", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We needed the same functionality and the quick and dirty way to do this is to modify TiContactsPerson.m file. For example:\r\n\r\nhttps://github.com/reyjexter/ti_sdk_mods/blob/master/custom%20contact%20labels/TiContactsPerson.m#L153\r\n\r\nYou need to clean the build dir before building on Ti Studio for this to work.\r\n\r\nI hope somebody can come up with a much more dynamic way to do this without changing ti sdk.", "updateAuthor": { "name": "reyjexter", "key": "reyjexter", "displayName": "Rey Bumalay", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-13T11:29:12.000+0000", "updated": "2015-02-13T11:30:07.000+0000" }, { "id": "365925", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We updated the {{Ti.Contacts}} API in our 5.0.0.GA release. Can you verify, the issue still exists? The [docs|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Contacts.Person-property-phone] says, that accepted values by iOS are \"home, work, other, mobile, pager, workFax, homeFax, main, and/or iPhone.\".", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-06T18:00:07.000+0000", "updated": "2015-10-06T18:00:07.000+0000" }, { "id": "453552", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case.\r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T18:56:34.000+0000", "updated": "2020-01-09T18:56:34.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }