Start a new topic

checking status of the sync process

hello,


Below is my test scenario.


1. make the offline policy "ONLINE_FIRST"

2. save several entities locally while network connection is not available.

3. restart the app with network connection.  When I call get() or save() method, it seems the sync process is started and the entities saved offline are updated to online.  However, it takes some time to complete the sync process. If I fetch or query all entities before sync process is done, the method returns null object or save()/get() method does not work as I expected.


So here's my question. Is there a way to check if sync process is in progress or completed?  Thank you in advance for your help.

Login or Signup to post a comment