I'm currently working on a project that uses CoreData
for data saving in swift, and for the purpose of synchronization I wanted to use iCloud, and the first thing I thought was on the CoreData iCloud
implementation, but since it's now marked as deprecated I started using CloudKit
, and everything works fine until I try to make a backup of the information after an internet connection is stablished (in case of failure when the information should be updated), the app does not store files, just data, all CKRecords
are working fine.
My questions are:
- Can you synchronize the information after the application is terminated?
- Does
CloudKit
connect to the automatic iCloud synchronization, the one that happens when the device is plugged and has an internet connection.
The current structure is:
CoreData
for local saving and withdrawal of data, and CloudKit
for Cloud synchronization.
So far I understand that: CloudKit
does not interact directly with CoreData
and all actions involving data synchronization must be done with the Api calls.
Thank you for your help and if I forgot something please let me know.