Search code examples
iosswiftxcodecore-datacloudkit

How to persist core data in cloud without authentication


I am designing an app using core data which has a local Cache. I am thinking of using CloudKit for syncing it across multiple iOS devices. Since CloudKit is not for persisting data, I am pretty sure that if user loses their phone that data is gone forever. My app doesn't require any authentication so how do I save the data in cloud along with local Cache so that it can be sync across multiple iOS devices like iPad or iWatch

P.S. Is it possible to save user generated content files in Documents so that they can get backed up by iCloud automatically without using CloudKit?


Solution

  • The data is backed up on iTunes and iCloud periodically, so if your user changes the device then they can restore the data from there.Yes it is possible to save user generated content files in Documents so that they can get backed up by iCloud automatically without using CloudKit