Hi Traun I have already implemented a replication change listener interface which lets me know about the status of replication. But the problem is that before replication is completed 100%, I get Replication IDLE status 2-3 while replication is going on. The status is ACTIVE 98% times but 2-3 times in between this replication, the status becomes IDLE and then ACTIVE again and after 100% completion it is always IDLE.
So this IDLE status before 100% completion is what is creating problem in my logic. If I rely on status IDLE then still 100% is left. On Saturday, April 5, 2014 2:18:35 AM UTC+5:30, Traun Leyden wrote: > > > Yeah, as Jens mentioned, you will want to subscribe to change events on > the replicator. > > Take a look at this code: > > > https://github.com/couchbase/couchbase-lite-android/blob/master/src/instrumentTest/java/com/couchbase/lite/LiteTestCase.java#L387-L416 > > and > > > https://github.com/couchbase/couchbase-lite-android/blob/master/src/instrumentTest/java/com/couchbase/lite/LiteTestCase.java#L454-L503 > > > > > > On Thu, Apr 3, 2014 at 11:45 PM, Pankaj Jakhar > <[email protected]<javascript:> > > wrote: > >> How can I know if the replication process has ended on Couchbaslite >> Android application? >> >> I want to allow login in my app only after it has synced all the data >> with server. SO I need to know when the syncing of its pull and push >> replication is completed. >> >> How can I achieve this? >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/mobile-couchbase/ae308cfb-2e42-4865-9ff3-ca90844a9ecf%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/ae308cfb-2e42-4865-9ff3-ca90844a9ecf%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/633a9277-8d79-4790-aa87-37d487ea9e9b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
