Titanium JIRA Archive
Appcelerator Community (AC)

[AC-464] Ti.Contacts.getAllPeople phone array with custom label return undefined ?

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2015-11-08T14:52:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
Reporterjack sparrow
AssigneeMotiur Rahman
Created2015-10-15T09:49:47.000+0000
Updated2015-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 ?

Comments

  1. jack sparrow 2015-10-15

    i did provide a test case , when contact person has phone number saved in custom label the phone array return undefined !
  2. Motiur Rahman 2015-11-08

JSON Source