[AC-1146] Can't access phone numbers from Contacts app if synced with google
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2014-10-15T02:14:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | TCSupportTriage, android, defect |
Reporter | Marten Nelson |
Assignee | Shuo Liang |
Created | 2014-07-18T23:29:53.000+0000 |
Updated | 2016-03-08T07:37:30.000+0000 |
Description
I'm retrieving Contacts using Ti.Contacts.getAllPeople and build a listview to select contacts from a pick list. If the Android Contacts app was synced with my google account (Android function) then none of the contact's phone numbers is accessible in the list items.
If I synch the Contact app with LinkedIn, the phone numbers are accessible through the list items.
Also, If I clear the Contacts app and enter contacts manually on the phone, the phone numbers are accessible from the list item.
Seems like when syncing Contacts app with google, the data is stored differently, which makes it inaccessible for Ti.Contacts.getAllPeople.
Attachments
Hi, In my test, can't produce your problem. Ti.Contacts.getAllPeople works well even with synced google account. Maybe you can try retrieve the phone as a json data. Like this
Hello! Did the JSON hint helped? Best Regards!
I think that's sort of what we're doing. See attached code.
Hi Marten, Would you please try that simple test case(first comment) in your environment, like create a new project, see whether it work or not. Regards, Shuo