在用户设备之间共享领域数据库 [英] Sharing a Realm Database between a user's devices

查看:179
本文介绍了在用户设备之间共享领域数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个正式的方式,一个领域数据库,在用户iPhone和iPad之间共享?显然,将需要某种类型的服务器,数据库可以推送和拉。是否有解决方案,像是有一种方法使用iCloud?

Is there a formal way for a Realm Database to be shared between a users iPhone and iPad? Clearly that will need some kind of server that a database can be pushed and pulled from. Is there a solution for this, like is there a way to use iCloud?

如果没有人有任何想法的最小阻力的路径实现自己?

If not does anyone one have any ideas for a path of least resistance for implementing this myself?

在Realm的GitHub页面上找到此聊天
https://github.com/realm/realm-cocoa/issues/913
我仍​​希望这里的人能解决这个问题吗?

Found this chat on the Realm's GitHub page https://github.com/realm/realm-cocoa/issues/913 I am still hoping someone here has got around this issue?

推荐答案

Realm尚未提供同步功能。我们正在积极开展同步建设功能,但我们目前没有ETA。

Realm hasn't provided sync feature yet. We are actively working on sync building feature, but we don't have no ETA at the moment.

轻松的方法是使用iCloud或其他服务共享Realm数据文件。例如DropBox API。

Easy ways are sharing Realm data file with iCloud or other services. e.g. DropBox API.

https://www.dropbox.com / developers

或者这个库可能会帮助你...? https://github.com/BellAppLab/RealmCloudKit

Or this library might help you...? https://github.com/BellAppLab/RealmCloudKit

其次,使用serverside数据库与本地数据库同步。喜欢Parse.com。

Second, using serverside database to sync with local database. Like Parse.com.

https://parse.com/

这篇关于在用户设备之间共享领域数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆