I've been looking at the documentation and can't seem to find a recommended Predicate which will provide only changed records from icloud.
I'm currently using TRUEPREDICATE
which get all records.
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"TRUEPREDICATE"];
I can't find anything onFALSEPREDICATE
.
I'm hoping there's already functionality to do this. I'm not using notifications, as I've found that they are unreliable. iOS, CloudKit - do I need to do a fetch when my app starts?
Also my app only needs to know changes at the start, I don't need to handle notifications in the background.
Deletes aren't a problem, as I'm keeping records with a removed flag to ensure they don't re-appear from an older device.
Doing a full fetch for all records when my app runs isn't ideal.
The only thing I can think of is storing the time and using a predicate against the record modified timestamp?