How to synchronize users on the Realm Mobile platform?

If, say, I have a mobile application that contains some personal data and some general data for the user. How do I configure the region’s synchronization URL so that shared data is synchronized with other users, while personal data is only synchronized between devices for that particular user? I noticed that in the sample that you configure with only one sync url, I don’t understand how other users see the changes? And what if there are sphere objects that I don’t want to use with other users?

+4
source share
1 answer

The Realm object server supports access control in Realms, so users can be granted the following permissions for this Realm:

  • Read
  • Record
  • Management (this means that the user can grant or revoke permissions for Realm)

By default, users can create new Realms in their own unique way: /~/newRealm( ~allowed by user ID). Then the user who created Realm has read / write / control permissions. Then this user can grant permissions to other users in the same Realm, and then both users will synchronize data in the common realm.

Currently, APIs for setting permissions have not been released, but will be available in the coming weeks during the beta period.

+2

Source: https://habr.com/ru/post/1656338/


All Articles