we are making an application where we are having public group as well as private group, any user in our application can read content of public group, To achieve this we are giving Guest access to channel(public group) as mentioned in the documentation.
http://developer.couchbase.com/documentation/mobile/1.1.0/develop/guides/sync-gateway/channels/developing/index.html
following is the code taken from my sync function which gives GUEST access to the channel, I have verified through the admin console that this channel is having guest access.
if(doc.groupType==‘public’){
access(“GUEST”,“ch-”+doc.channel_id);
}
But i unable to see this on our couchbase lite(client devices), Can somebody please help me to know that is this the right way to achieve this ? If yes then what is going wrong in my case ?