I am doing one application which should notify me changes (like update , delete, etc) in contacts of add开发者_运维问答ressbook ie ABAddressBook
is used to get all the address contacts. I read that ABAddressBookRegisterExternalChangeCallback
will give notifications, but I am not sure how it will work. I wanted to store changes even though my application is closed. Let me know anybody has worked upon same or any inputs.
You will only get a callback when you run your application. It's not possible to get a notification when the application is not running.
On iOS4+, if your app is in the background and a foreground app changes the address book, your callback will be called when your app is next brought to the foreground (i.e., not in "real time"). If your app is totally terminated then, of course, it behaves like pre-iOS4.
精彩评论