Getting a list of deleted CloudKit records with an expired change token

Usually, when you call fetchRecordZoneChanges with the previous change token, you get a list of the record ID’s that have been deleted since your last fetch.

But if you get a changeTokenExpired error because it‘s been too long since you last fetched, you have to call fetch again without a token.

For my specific application, I still need to know, though, if any records have been deleted since my last sync. How can I get that information if I no longer have a valid change token?

Answered by Frameworks Engineer in 873119022

The deletion history is maintained, you will receive the deleted records via the recordWithIDWasDeletedBlock callback.

The deletion history is maintained, you will receive the deleted records via the recordWithIDWasDeletedBlock callback.

Getting a list of deleted CloudKit records with an expired change token
 
 
Q