How to access iCloud as basic data for iCloud is deprecated

I’m working on an application using basic data, because I thought I could use the synchronization functions provided by the main data for iCloud to synchronize data between iPad and iPhone, now it is out of date.

I came across CloudKit, but basically it is to create and manage data that can be used by the end-user community, but not just one, like chat applications. My application is intended for only one user, so that the user can synchronize their data between their apple ecosystem devices.

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

In short, can you suggest that I should use

  • If you need to store data on your phone for offline use
  • Then sync it between devices if the user says iPhone, iPad and iWatch.

PS Could you suggest something that is not necessary for the user to be signed into iCloud when saving data.

+7
source share
3 answers

You should watch the video from the latest WWDC. Here's something about CloudKit Best Practices and what's new in the CloudKit cloud suite really has some of the best solutions, and you don't need to worry about security. In addition, the latest functionality allows you to use notifications to synchronize applications using the same Apple ID and even beyond, since now the user can choose to share certain data.

Depending on how much data you synchronize, NSUbiquitousKeyValueStore.default () is also an option. But only for very small data.

+2
source

CoreData / iCloud integration is deprecated in iOS 10 / macOS Sierra, and there is no replacement (at least so far).

Still moving forward:

Please note that CoreData / iCloud integration will continue to work for some time to come. Applications that use it will not stop working.

+3
source

Apple just released a new container for Core Data that can sync between devices with iCloud.

Start here: https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/setting_up_core_data_with_cloudkit

Please note this requires iOS 13.

0
source

Source: https://habr.com/ru/post/1257602/


All Articles