realm-kotlin icon indicating copy to clipboard operation
realm-kotlin copied to clipboard

Check if there are pending changes to synchronize

Open clementetb opened this issue 1 year ago • 1 comments

We like to have a way to check if there are changes in the db that have not been synchronized.

There are some situations where the app might be offline, and some changes have occurred, this feature would allow us to detect this situation and react to it, allowing the app to display a warning message that it requires some connectivity.

A workaround is to combine a Realm, session change and progress listeners, to detect if the DB is in a dirty state, and if all changes have been uploaded.

We would provide an API to check if there are pending changes, and/or a flow with the current status.

clementetb avatar Dec 21 '23 12:12 clementetb

all this data is already available in the sync client so we can easily expose it

danieltabacaru avatar Feb 07 '24 12:02 danieltabacaru