Hi everybody,
I've created a phonegap app on iOS using JavaScript. I can push and pull data from the sync gateway and see the new data on couch server. To do so, I've created two sync managers, one to the push data and the other to do the pull process. Now, I'd like to know when the sync process (pulling data from SG) has finished. Should I query the _active_tasks endpoint to know the replication status? If so, there're several possible status: processed, idle, active, offline and stopped. When the app starts up, I start querying the replication status. I get the "processed" status several times until I get the "idle" status. After that I load a list view to show the documents. Is the "idle" status the one to know when the sync process has finished? Is this the right way to check the status?
Thanks in advance,