Hello all, I’am pulling data from server to couchbase lite (My device) although the problem occurs here pulled data is not updating immediately even after replication status is IDLE or STOPPED, I tried by placing a thread.wait for 5 second to allow data to be settle in device which works fine. But how to confirm whether the data in mobile has been updated successfully same as on server without using sleep(5000) thread wait.
In my current work all working fine after put a wait for 5 second after replication is stopped or idle. But wait is not reliable and proper way I’ve to make sure as data has been updated in device.
I’ve used changed listener but same problem happening there it seems I’ve to put a wait for 5 sec to all data to be settle on device.