0

Im thinking about using the Realm Mobile Platform for my new application. I read the docs and found most of my requirements fullfilled like:

  • registration
  • login
  • encryption
  • self syncing
  • etc.

What I did not find is how it is decided which data is synchronized to which client. For example if you are a registered user and you login with your user account lets call it Account A. I guess all data related to Account A are now synchronizing to the Client. Now what happens if you logout with Account A and login with Account B (maybe a friend who just wants to use your smartphone for a minute) and Account B will never ever be used again on the current client. Will the automatic sync still synchronize the changes from the server to the client?

4

1 回答 1

1

@Mulgard - 你正在寻找的东西目前是不可能的。

对于同步领域,所有数据都是同步的,不可能有选择地同步数据记录或类。

此时对同步领域的授权是在领域级别而不是记录级别,如果用户有权访问领域,那么他们可以访问该领域中的所有数据。

GitHub 项目上有一张票,其中列出了选择性同步功能作为候选未来功能。这听起来可能会满足您的一些要求。 https://github.com/realm/realm-mobile-platform/issues/40

GitHub 项目上还有一张票,列出了“细粒度”权限。 https://github.com/realm/realm-mobile-platform/issues/22

于 2016-12-12T13:51:30.287 回答