Hi Jens
I'm doing this in my sync function
* if(doc.date!=actualDateString){ console.log("This document must not
be synchronized"); channel("x"); access("x","x"); }else{
channel("local"); access("local","local"); }*
I already test the if/else and it's working fine. In the iOS app I'm doing
this
*self.pullGateway.filter=@"sync_gateway/bychannel";self.pullGateway.filterParams=[[NSDictionary
alloc] initWithObjectsAndKeys:@"local", @"channels", nil];self.pushGateway
= [self.database createPushReplication: self.gatewayURL];*
The result is the same, whit or whitout channel filtering. I'm having the
same number of synchronized documents.
Only by-channel filtering is supported. If it’s not working correctly for
> you, we should investigate that. Can you give more details about what’s
> going wrong? (I’m guessing that your sync function isn’t correctly
> assigning documents to channels.)
>
> —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/e164a2c2-9cad-414a-857d-a04b9396499f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.