Difference Between CloudKit and Key Vault

What is the difference between iCloud Key Storage and CloudKit?

Sample scenario: if you need to synchronize an array containing dictionaries, arrays and other objects. Will the developer use CloudKit or keystore?

+6
source share
2 answers

CloudKit is designed to synchronize real data records, as well as assets (files).

The iCloud key value NSUserDefaults essentially NSUserDefaults , but synchronized between devices.

So think of it like that. If this is a simple value that you can store in NSUserDefaults , use a keystore. If this is actual data that you can save to plist, database, file or core-data, use CloudKit.

+8
source

I just thought it would be useful to mention that according to the iCloud Design Guide :

Applications can only store 1 MB of data in their key value store

So, it might be something to consider when choosing between CloudKit and iCloud Key-Value Storage.

In my case, for the application that I am currently working on this restriction, everything is in order. However, I would suggest that in a larger project, a 1 MB limit might not be enough. Helps to know this before making a decision!

Hope this helps!

+7
source

All Articles