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,

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/aca32bf1-30c0-4bf0-acda-855f885d43d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to