开发者

AddressBook Listener

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜