Ilya K.
Ilya K.

Reputation: 940

AddressBook synchronization in iOS

Is there any way in iOS to get notification about address book changes since the last time applications was opened.

The application stores address book in internal database and I don't want to perform full sync each time it activated.

Thanks in advance.

Small addition to clarify the question: I use ABAddressBookRegisterExternalChangeCallback to observe changes when application suspended to background, but from what I know, this method can't work if application was closed completely and reopened(for example: after phone restart or closed from task list).

Upvotes: 23

Views: 3856

Answers (1)

Mário Carvalho
Mário Carvalho

Reputation: 3125

Maybe you're looking for this:

ABAddressBook Reference - ABAddressBookRegisterExternalChangeCallback

You should register that notification!

Tell me if worked or if you need any help

Mário

Upvotes: 3

Related Questions