开发者

AddressBook Listener

开发者 https://www.devze.com 2022-12-11 19:25 出处:网络
I am doing one application which should notify me changes (like update , delete, etc) incontacts of add开发者_运维问答ressbook ie ABAddressBook is used to get all the address contacts. I read thatABAd

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消