Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get the current user's address book record?

Assuming the user has granted permission for the app to access contacts, is there any way to determine which record belongs to the phone owner? For example if you browse the list of contacts on your phone, you will see a little "me" beside the record that is identified as the owner's record. So the phone clearly knows this, but is there any programmatic way to determine this? Or is that considered a privacy violation?

like image 971
devios1 Avatar asked Oct 14 '13 19:10

devios1


1 Answers

I know on a Mac you can use [[ABAddressBook sharedAddressBook] me]. For iOS, take a look at how Square's CardCase app does it.

like image 78
neilco Avatar answered Nov 15 '22 04:11

neilco