Does Realm work with iCloud?

I want to write an application for iOS and OS X that has a common database and syncs through iCloud. I planned to use Realm, but then I thought if it worked well for use with CloudKit or should I use Core Data instead?

Thanks.

+4
source share
1 answer

iCloud allows you to back up and synchronize files on all connected user devices. With Realm, you could theoretically agree to this if only one client accesses the data at any given time, which will be difficult to guarantee. In addition, there are file size restrictions that make this solution vulnerable.

CloudKit is a backend service solution that allows you to customize the circuit and request data from you. It does not bring a built-in save layer. You will need to provide this logic yourself, for integration with CoreData as for Realm.

+1
source

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


All Articles