Reputation: 1870
If say, I have a mobile app that comprises of some private data, and some shared data for a user. How do I set up the realm sync URL so that the shared data is sync across other users while the private data is only synced across devices for that particular user? I noticed in the sample you only setup with one sync URL, what I do not understand is how would other users see the changes? And what if there are realm objects that I do not wish to share with other users?
Upvotes: 4
Views: 791
Reputation: 1543
The Realm Object Server supports access control on Realms, such that users can be given the following permissions for a given Realm:
By default users can create new Realms within their unique path: /~/newRealm
(~
is resolved to the user ID). The user which created the Realm then has Read/Write/Manage permissions. This user can then grant permissions to other users to this same Realm, and then both users would be syncing data in the shared Realm.
Currently, the APIs to adjust permissions have not been released but will be available in the coming weeks during the beta period.
Upvotes: 2