求助:使用环信SDK在iOS上无法收到加入群组消息
详细情况如下:
1. 在application:didFinishLaunchingWithOptions:launchOptions已调用以下方法
[[EaseMob sharedInstance] registerSDKWithAppKey:AppKey apnsCertName:CertName otherConfig:nil];
[[EaseMob sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
2. 用户已成功登陆过并设置了自动登陆
3. 已经继承了EMChatManagerDelegate接口并进行了注册
[[EaseMob sharedInstance].chatManager removeDelegate:self];
[[EaseMob sharedInstance].chatManager addDelegate:self delegateQueue:nil];
但当其它客户端发送加入群组请求时didReceiveApplyToJoinGroup:groupname:applyUsername:reason:error:不会被调用。但控制台里会输出如下信息:
RECV:{"from":"18222954671","to":"13752450315","bodies":[{"action":"applyAction","type":"cmd"}],"ext":{"groupId":"130681715021578696","content":"yyyyy"}}
SEND:
看样子服务器已经把消息发送到手机端了,但不知道为什么代码没有收到通知。
1. 在application:didFinishLaunchingWithOptions:launchOptions已调用以下方法
[[EaseMob sharedInstance] registerSDKWithAppKey:AppKey apnsCertName:CertName otherConfig:nil];
[[EaseMob sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
2. 用户已成功登陆过并设置了自动登陆
3. 已经继承了EMChatManagerDelegate接口并进行了注册
[[EaseMob sharedInstance].chatManager removeDelegate:self];
[[EaseMob sharedInstance].chatManager addDelegate:self delegateQueue:nil];
但当其它客户端发送加入群组请求时didReceiveApplyToJoinGroup:groupname:applyUsername:reason:error:不会被调用。但控制台里会输出如下信息:
RECV:
SEND:
看样子服务器已经把消息发送到手机端了,但不知道为什么代码没有收到通知。
没有找到相关结果
已邀请:
14 个回复
lifei9241
jzhao
donghai
协议:IChatManagerDelegate
代理:[[EaseMob sharedInstance].chatManager addDelegate:self delegateQueue:nil];
//接收到入群申请
- (void)didReceiveApplyToJoinGroup:(NSString *)groupId
groupname:(NSString *)groupname
applyUsername:(NSString *)username
reason:(NSString *)reason
error:(EMError *)error
jzhao
donghai
jzhao
[已注销]
jzhao
[已注销]
jzhao
港岛小哥
jzhao
[已注销]
jzhao