I'm developing an iOS app with Datastore.
How do I know records deleted from remote? I watch changes with observer (status.incoming) and call sync: and it return the changes. The deleted DBRecord will be return but the properties can't be accessed, which I use for storing a unique ID for my data, and compare them in my Core Data database.
(I don't use Datastore as my main database is because I also have an iCloud sync option. )
The only thing I can get from the deleted Record is isDeleted flag. There seems not much I can get with the sync: API. Right now I just have to make my own isDeleted flag in the DBRecord but not actually delete the record.
Is there better way to do it?
Thanks.