【发布时间】:2018-03-31 10:11:59
【问题描述】:
我的问题与User list for pubnub-chat objective c 相同,但似乎没有有用的答案。
- 我使用 Pub & Sub 密钥注册了客户端,并且 Presence = YES
- 我订阅了“我的频道”并可以向其发送消息
- 我在 PubNub 管理员中使用调试控制台创建了另外 2 个客户端,我可以一起发送消息
- 我在管理员中启用状态 (http://prntscr.com/iyv7b1)
- 我得到按功能订阅“我的频道”的用户列表:
[client hereNowForChannel:@"My channel" withVerbosity:PNHereNowState completion:^(PNPresenceChannelHereNowResult *result, PNErrorStatus *status)
{
if (!status) {
}
else {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Couldn't get list of user." delegate:nil cancelButtonTitle:@"Close" otherButtonTitles:nil];
[alert show];
}
}];
我试图改变
PNHereNowState -> PNHereNowUUID -> PNHereNowOccupancy
但我的结果总是 NIL。
请大家帮帮我
【问题讨论】:
标签: objective-c pubnub