Is it possible to see Presence of friends/friend lists? Or is it only by channel?
Also do you have to enter a channel to monitor online/offline status?
You can query for users status:
var ApplicationUserListQuery = sb.createApplicationUserListQuery();
applicationUserListQuery.userIdsFilter = ['Jeff'];
applicationUserListQuery.next(function(users, error) {
if (error) {
return;
}
if (users[0].connectionStatus === sb.User.ONLINE) {
// User.connectionStatus consists of NON_AVAILABLE, ONLINE, and OFFLINE.
}
});
Not sure if this is what you need but if you want to know which users are chatting with you (that makes them a friend) you can list all your channels with the “show_member” set to true.
/v3/users/YOUR-USER-ID/my_group_channels/?show_member=true