Hello Federico, I'm interested in knowing how you achieve this, as I want to do the same. Would you please share? BR, Sandra
On Tuesday, February 3, 2015 at 9:58:02 AM UTC-6, Federico Hernandez wrote: > > 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/af384ef6-94f0-4f05-8a58-6dbf55c44b96%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
