I would like to get all the user ID’s that have access to a channel from the sync gateway. For example, if I grant two different users access to a channel. Then a new document comes in that would be assigned to that channel, I would like to get the array of users that have access to that channel first.
I need the array of users who have access to that channel so that I can send out an APNS (apples push notification) to the users of that channel.
Ideally, it would be nice if I could just do
var usr_arr = channel(the_channel).users()