Search code examples
iosrealm

Share realm object with other devices


Is it possible to share realm objects across iOS devices? I'm creating an app that has Ticket objects in Realm and I'd like to be able to share those objects with others (who would also need to have the app).

How would one go about this?


Solution

  • Yes, Realm Mobile Platform allows you to store data locally as well as in the cloud. Synchronization and conflict resolution are all automatic. You can also create public Realms (global tables accessible by all users) as well as shared Realms (user tables where you can give reading, writing or admin rights to specific users). If you want to share all Tickets to all users, a global /Ticket table would be a good choice.

    No, current version doesn't support fine-grained access control, that is access rights per object inside a Realm. You must share the whole Realm and all its objects. I look forward to using this important, missing feature.


    https://github.com/realm/realm-mobile-platform/releases