iOS升级都V3.2.2R2版本,updatePushOptionsToServer崩溃
代码如下:旧版没有问题,只是替换了最新的SDK,其他代码没做任何修改。
Thread1:EXC_BAD_ACCESS (code=1,address=0x0)
- (void)loginStateChange:(NSNotification *)notification
{
BOOL loginSuccess = [notification.object boolValue];
if (loginSuccess) {
EMPushOptions *options = [[EMClient sharedClient] pushOptions];
options.displayStyle = EMPushDisplayStyleMessageSummary;
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[EMClient sharedClient] updatePushOptionsToServer];
});
}
}
Thread1:EXC_BAD_ACCESS (code=1,address=0x0)
- (void)loginStateChange:(NSNotification *)notification
{
BOOL loginSuccess = [notification.object boolValue];
if (loginSuccess) {
EMPushOptions *options = [[EMClient sharedClient] pushOptions];
options.displayStyle = EMPushDisplayStyleMessageSummary;
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[EMClient sharedClient] updatePushOptionsToServer];
});
}
}
没有找到相关结果
已邀请:
3 个回复
[已注销]
[[EMClient sharedClient] getPushOptionsFromServerWithError:&error];
一壺漂泊思念瘦
阿斯顿