简体   繁体   English

在用户设备之间共享领域数据库

[英]Sharing a Realm Database between a user's devices

Is there a formal way for a Realm Database to be shared between a users iPhone and iPad? 是否存在在用户iPhone和iPad之间共享Realm数据库的正式方法? 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? 是否有解决方案,例如可以使用iCloud?

If not does anyone one have any ideas for a path of least resistance for implementing this myself? 如果没有人对实现自己的阻力最小的想法有任何想法?

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的GitHub页面上找到了此聊天记录https://github.com/realm/realm-cocoa/issues/913我仍然希望这里有人解决这个问题?

Realm hasn't provided sync feature yet. Realm尚未提供同步功能。 We are actively working on sync building feature, but we don't have no ETA at the moment. 我们正在积极开发同步构建功能,但目前尚无ETA。

Easy ways are sharing Realm data file with iCloud or other services. 简单的方法是与iCloud或其他服务共享Realm数据文件。 eg DropBox API. 例如DropBox API。

https://www.dropbox.com/developers https://www.dropbox.com/developers

Or this library might help you...? 还是这个库可能对您有帮助...? https://github.com/BellAppLab/RealmCloudKit https://github.com/BellAppLab/RealmCloudKit

Second, using serverside database to sync with local database. 其次,使用服务器端数据库与本地数据库同步。 Like Parse.com. 就像Parse.com。

https://parse.com/ https://parse.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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