EMPushOptions 推送设置无效,多次尝试无果
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{EMPushOptions 推送设置无效,确认是在登录后重新获取了Options。当前SDK调用设置EMPushNoDisturbStatusDay返回成功,下次重新登录从服务器获取依旧是EMPushNoDisturbStatusClose,多次更换网络,不同时段测试都无效果。
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();
});
}
});
EMError *error;
EMPushOptions *pushOptions = [[EMClient sharedClient] getPushOptionsFromServerWithError:&error];
SDK使用的是当前3.0的最新版本。
搜索了相关问题,没有一个能解决问题,真机调试问题依旧,困扰了一周没有解决问题。已经环信付费了,却找不到相关人员协助解决问题,以前的工单系统也没了,很头疼。
没有找到相关结果
已邀请:
1 个回复
Xcode打字员