I was facing a few Realm Sync error, notably 208 and 211. I was looking for some documentation on what each sync error code means, something similar to the old Realm Sync document here – Errors - Realm Sync (LEGACY).
My open questions -
- Most of the errors (208 and 211) are caused because a client reset is not performed. What is the right way to listen for sync errors and perform a client reset. In the old Realm sync I see we can add a handler on the
SyncManager.sharedobject to liste for any sync errors. But for the MDB Realm I don’t see anything called
- What is the right way to perform a client reset on iOS SDK? I see a MDB doc stating that
Realm.deleteFiles(for: config)is the way to go. But I’m not 100% sure when to trigger this, which kind of boils down to saying how to listen for sync errors ie. point 1.
Thank you in advance