Questions:
How to get the last modified date in CNContact (new apple contacts framework) ?
The last modified date is not present in the list of keysToFetch
I would like to fetch and update contacts that have been modified since my last fetch. How can I do this ?
According to the Apple Staff reply, no api for that right now. https://forums.developer.apple.com/thread/16049
To perform nearly the same thing, I would suggest using
enumerateContactsWithFetchRequest:error:usingBlock:
Assuming an individual contact is identified by name, when the name field remain the same but other infos are changed, we can say the contact is updated. If you concern about the performance, do it on a background queue.
Hope this help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With