Improve sync performance after being offline

I’m experimenting with Realm Sync in a react native app.

Our app will be used in a situation where the internet connection can be inconsistent, while having an up to date sync is paramount. I’m now testing what happens to the sync after enabling flight mode.

Sometimes the sync is restored near instant, but it can also take up to 30 seconds or even longer.

Questions:

  • does anyone understand how the restoring sync works in Realm, after internet connection has been lost for some time?
  • (how) can I influence this process?