差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 | 后一修订版 两侧同时换到之后的修订记录 | ||
im:ios:apns:offline [2020/01/02 08:41] huanxinfudh [设置推送显示详情] |
im:ios:apns:offline [2020/01/02 08:42] huanxinfudh [全局免打扰设置] |
||
---|---|---|---|
行 254: | 行 254: | ||
options.noDisturbingStartH = 0; | options.noDisturbingStartH = 0; | ||
options.noDisturbingEndH = 24; | options.noDisturbingEndH = 24; | ||
- | EMError *error = [[EMClient sharedClient] updatePushOptionsToServer]; | + | [[EMClient sharedClient] updatePushNotificationOptionsToServerWithCompletion:^(EMError *aError) { |
+ | if(!aError){ | ||
+ | NSLog(@"更新推送设置到服务器成功"); | ||
+ | } else { | ||
+ | NSLog(@"更新推送设置到服务器失败的原因 --- %@", aError.errorDescription); | ||
+ | } | ||
+ | }]; | ||
行 262: | 行 268: | ||
options.noDisturbingStartH = 9; | options.noDisturbingStartH = 9; | ||
options.noDisturbingEndH = 22; | options.noDisturbingEndH = 22; | ||
- | EMError *error = [[EMClient sharedClient] updatePushOptionsToServer]; | + | [[EMClient sharedClient] updatePushNotificationOptionsToServerWithCompletion:^(EMError *aError) { |
+ | if(!aError){ | ||
+ | NSLog(@"更新推送设置到服务器成功"); | ||
+ | } else { | ||
+ | NSLog(@"更新推送设置到服务器失败的原因 --- %@", aError.errorDescription); | ||
+ | } | ||
+ | }]; | ||
</code> | </code> | ||