Is iCloud sync working?

Hello,

I tried to validate if my app was properly syncing to the cloud. To test this, I created some data in the app, and then deleted the app, and reinstalled. I was expecting the data to still exist but it isn't. Is this a valid test or is the data expected to be deleted when app is deleted?

That depends on if the data has already synchronized to cloud. Some APIs provide a way to get notified of the synchronization, like NSPersistentCloudKitContainer.Event, and some don't.

For folks to provide meaningful comments, you might consider providing more context about your question, for example, what Apple APIs you use and how you use them, how you trigger the issue, and what error message you get. See tips on writing forums posts, if necessary.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Is iCloud sync working?
 
 
Q