AddressBook synchronization in iOS

偶尔善良 提交于 2019-11-28 21:09:20

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/12348916/addressbook-synchronization-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!