关于环信群聊消息免打扰,具体点说就是能接收到消息但是不要推送
demo中我看提供的是这个方法
[[EMClient sharedClient].groupManager updatePushServiceForGroup:群id isPushEnabled:@"yes"or@"no" completion:^(EMGroup *aGroup, EMError *aError) {
}];
我用这个方法修改的免打扰,但是当我修改之后再次查看群消息的isPushNotificationEnabled状态并没有改变。注明aError不存在所以是修改成功了。
没有找到相关结果
已邀请:
4 个回复
ljQwe
ljQwe
木云落
屏蔽群推送的方法时这个
/*!
@Method
@brief 屏蔽/取消屏蔽群组推送
@param aGroupId 群组ID
@param aIgnore 是否屏蔽
@result 错误信息
@discussion
同步方法,会阻塞当前线程
*/
- (EMError *)ignoreGroupPush:(NSString *)aGroupId
ignore:(BOOL)aIgnore;
//调用:
//[[EMClient sharedClient].groupManager ignoreGroupPush:@"groupId" ignore:YES];
ljQwe