Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AddressBook synchronization in iOS

Tags:

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).

like image 888
Ilya K. Avatar asked Sep 10 '12 09:09

Ilya K.


People also ask

How do I sync my address book with my iPhone?

On your iPhone, iPad, or iPod touchGo to Settings > [your name] > iCloud. Turn on Contacts. When you're asked if you want to Merge or Cancel, tap Merge.

How do you turn on synchronization on iPhone?

On your iPhone, iPad, or iPod touchGo to Settings > Music. Turn on Sync Library. If you don't subscribe to Apple Music or iTunes Match, you won't see an option to turn on Sync Library.

Why is my address book not syncing with iPhone?

Make sure that you're signed in to iCloud with the same Apple ID on all of your devices. Then, check that you turned on Contacts, Calendars, and Reminders in your iCloud settings. Check the date and time settings on your device to make sure they're correct for your current location.


1 Answers

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

like image 61
Mário Carvalho Avatar answered Sep 23 '22 18:09

Mário Carvalho