Sync engines are a fantastic way of automatically keeping your app state up to date with your backend. But sometimes things can get bumpy: datasets explode, infra gets congested, apps get suspended, device's network stack is full of sludge, etc.
So we added waitForSync() : a method for the app to assert that device state matches server state as of _now_
This is useful for a plethora of use cases: push notifications and deep links, pull to refresh, force-sync after returning to an app after suspension, one-shot background refresh, and many more.
Available as of powersync-service v1.24.0 and v1.16.0 in our Swift SDK, with other SDKs in progress / following soon. Release notes:
releases.powersync.com/annou…