Search code examples
iosswiftxcodeicloud

How to access iCloud as core data for iCloud is deprecated


I am working on an app using core data as I thought I could use sync functionality provided by core data for iCloud for syncing data between iPad and iPhone, now it is deprecated.

I came across CloudKit but it is mainly to create and manage data that can be consumed by community of end users but not just one like chat apps. My app is only for single user so that user can sync their data between their apple eco system devices.

I am new to iOS development so it would be helpful to know which technology will meet my requirements.

In short, can you please suggest what should I use

  1. If have to store data on phone for offline use
  2. Then sync it across devices if user have say iPhone, iPad, and iWatch

P.S. Can you please suggest something that doesn't need the user to be signed into iCloud while saving the data.


Solution

  • You should take a look at the videos from the latest WWDC. Here is something about CloudKit Best Practices and whats new in cloud kit CloudKit really have some nice out of the box solutions and you dont have to bother about security. Also the newest functionality enables you to use notifications for synchronising apps using the same apple id and even beyond, as the user can now opt to share certain data.

    Depending how much data you are syncing, NSUbiquitousKeyValueStore.default() is also an option. But only for very less data