I have a contact book on my application and need to sync those contacts with server cum phonebook regularly.
Rather taking total phoneBook to update app's contacts, I am thinking of diff of changed contacts for which I didn't find a functionality in ABAddessBook
API. Problem is that the contact objects in the app are of different type to contact objects that I get from phoneBook
via function ABAddressBookCopyArrayOfAllPeople()
.
If I get difference of changed contacts efficiently, then I can just sync those contacts only. Will that be possible?
Hey! I found that we can register to ABAdressBook change by ABAddressBookRegisterExternalChangeCallback
, but is there a way to get diff of changed contacts?
Thanks.