注册

EMPushOptions 推送设置无效,多次尝试无果

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
EMPushOptions *pushOptions = [[EMClient sharedClient] pushOptions];
if (aBool) {
pushOptions.noDisturbStatus = EMPushNoDisturbStatusDay;
pushOptions.noDisturbingStartH = 0;
pushOptions.noDisturbingEndH = 24;
} else {
pushOptions.noDisturbStatus = EMPushNoDisturbStatusClose;
pushOptions.noDisturbingStartH = 0;
pushOptions.noDisturbingEndH = 24;
}

EMError *error = [[EMClient sharedClient] updatePushOptionsToServer];
if (error) {
failure([error errorDescription]);
} else {
if (aBool) {
_apnsChatNoDisturb = YES;
} else {
_apnsChatNoDisturb = NO;
}

dispatch_async(dispatch_get_main_queue(), ^{
success();
});
}
});
EMPushOptions 推送设置无效,确认是在登录后重新获取了Options。当前SDK调用设置EMPushNoDisturbStatusDay返回成功,下次重新登录从服务器获取依旧是EMPushNoDisturbStatusClose,多次更换网络,不同时段测试都无效果。
EMError *error;
EMPushOptions *pushOptions = [[EMClient sharedClient] getPushOptionsFromServerWithError:&error];
 
SDK使用的是当前3.0的最新版本。

搜索了相关问题,没有一个能解决问题,真机调试问题依旧,困扰了一周没有解决问题。已经环信付费了,却找不到相关人员协助解决问题,以前的工单系统也没了,很头疼。
已邀请:
环信现在的服务器有问题,iOS这边大家都收不到推送了,不是你代码的问题

要回复问题请先登录注册