On Thursday, January 8, 2015 4:51:08 PM UTC-3, Jens Alfke wrote:
>
> If you can see the docs in the _changes output on the admin interface, but 
> they don't replicate to the app, then the problem is probably with access 
> privileges. Make sure the user account the app logs in as has access to at 
> least one of the channels the docs are assigned to by the sync function. 
>

I'm using the following sync function:

function (doc) {
  channel(doc.channels);
}
 
I created the user as following:

curl -X PUT http://localhost:4985/adb/_user/fede --data \ '{"name": "fede", 
"email":"[email protected]", "channels":["*"], "role":"user", 
"password": "******"}'

 

-- 
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/421ca1a7-63a7-4c3d-b000-a9dd364da55a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to