Addressbook backup
hello there,
i am building an iphone daemon app in which i am taking backup of addressbook contents . my app is divided in 2 parts
1 : GUI that also taking backup of addressbook . this module is working fine and it takes all addressbook backup
2 : Daemon part that is running in background and keep track if a contact is changed or not . but when i call
ABAddressBookRef addressBook = ABAddressBookCreate();
CFArrayRef people = ABAddressBookCopyArrayOfAllPeople(addressBook);
then i am getting no record , people array is empty and this code is working fine in GUI mode.
so where i am doing wrong .
|