简体   繁体   中英

Realm swift sync local database?

I'm using Realm in my app to store user-created data. Now I want to sync local database so that user can use same data in other iOS devices. I found that realm support data sync on Realm Object Server . But couldn't understand how it will work? or what I need to change in my existing code to enable data sync?

Note: I'm using Swift 2.3 and Realm 1.0.2 (Yes, it is an old project).

You can use the Realm Mobile Platform to sync your database however right now you must setup RMP and the Realm Object Server on your own server (or Mac/Linux computer). You will need to upgrade the version of Realm that you're using to the latest version so you can access the APIs included for the sync component. However, once that upgrade has been completed, no Realm database code will need to be changed to make use of sync or ROS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM