sharedGlobalIds property
Set to true
to enable shared global IDs for a Sync-enabled entity class.
By default, each Sync client has its own local ID space for Objects. IDs are mapped to global IDs when syncing behind the scenes. Turn this on to treat Object IDs as global and turn of ID mapping. The ID of an Object will then be the same on all clients.
When using this, it is recommended to use assignable IDs (@Id(assignable: true)
)
to turn off automatically assigned IDs. Without special care, two Sync
clients are likely to overwrite each others Objects if IDs are assigned
automatically.
Implementation
final bool sharedGlobalIds;