Hi Jens I solved my problem setting a listener not only to events in the CBLObject also in changes on CBLDatabase. Thanks a lot for your explanations.
El lunes, 20 de abril de 2015, 10:54:13 (UTC-5), Jens Alfke escribió: > > > On Apr 17, 2015, at 10:41 AM, Victor Fernandez <[email protected] > <javascript:>> wrote: > > My problem is that only when is active the method replicationProgressP2p > the peer to peer connection works great, but when the replication becomes > inactive despite I make some local database changes the method > replicationProgressP2p turns active only after several time, in many > scenarios takes more than a minute. > > > I think what you’re saying is: > > 1- the initial replication catches up and the status of the push > replicator goes from Active to Inactive > 2- you make a local change > 3- the push replicator doesn’t push the change immediately, instead it > takes a minute or longer > > Correct? > > I’m wondering what the exact status changes are. Could you add logging to > your notification handler to log the status property as well? The only > explanation I can think of is that for some reason the replicator goes to > Offline, meaning it doesn’t think the other device is reachable. In that > case it won’t try to replicate again until the device shows up as reachable > again. > > —Jens > -- 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/41603997-74c3-4554-b9cc-aa3fb00964da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
