[AC-464] Ti.Contacts.getAllPeople phone array with custom label return undefined ?
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Duplicate |
| Resolution Date | 2015-11-08T14:52:38.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | jack sparrow |
| Assignee | Motiur Rahman |
| Created | 2015-10-15T09:49:47.000+0000 |
| Updated | 2015-11-08T14:52:38.000+0000 |
Description
in Appcelerator Studio Ti.Contacts.getAllPeople return all contacts with their information , but when contact phone number saved as custom label iOS the phone array return undefined .
{color:gray} example ( no custom label ) :
var people = Ti.Contacts.getAllPeople();
var person = people[0]
// first person phone number label is "home"
output person.['phone']["home"] = [000-00-00];{color}
{color:red}example ( custom label ) :
var people = Ti.Contacts.getAllPeople();
var person = people[0]
// first person phone number label is "Blablabla"
output person['phone'] = undefined;{color}
i mean by custom label in iPhone 5,6 etc when u add phone number u can assigen it as custom label , if so the phone array return undefined . is this a bug in appcelerator ?
i did provide a test case , when contact person has phone number saved in custom label the phone array return undefined !