0

Is there a way to check if the new object/edited object has been synced yet? I need to put an indicator that shows if the edited object has been successfully synced or is still only saved locally. I'm using Realm Object Server v1.0.

bdash
  • 18,110
  • 1
  • 59
  • 91
Hadi
  • 705
  • 8
  • 23
  • This in no way answers your question, but I'd strongly suggest you update to Realm Object Server v2.x. v1.x is no longer supported or actively maintained. – bdash Jan 23 '18 at 18:03
  • I was intending on upgrading once the digitalocean issues are resolved... I heard the 5$ server has issues with the new version... also I couldn't find the requested feature in the new version... – Hadi Jan 23 '18 at 18:09

1 Answers1

2

This information isn't available at an object level granularity due to the way that synchronization works. Synchronization processes transactions at a time. You can use SyncSession.addProgressNotification(for:mode:block:) with the forCurrentlyOutstandingWork progress mode to be notified when the changes made in a given write transaction have been uploaded.

bdash
  • 18,110
  • 1
  • 59
  • 91