didReceiveMessage APP结束进程一次后才调用
首次登陆APP 收到消息的不走 didReceiveMessage回调需要结束app进程重新启动一次后 才能调用漏掉什么方法了吗 以下是代码 求指导啊
EMError *err=[[EaseMob sharedInstance] registerSDKWithAppKey:@"..." apnsCertName:@"..."];
[[EaseMob sharedInstance].chatManager removeDelegate:self];
[[EaseMob sharedInstance].chatManager addDelegate:self delegateQueue:nil];
[[EaseMob sharedInstance].chatManager asyncLogoffWithUnbindDeviceToken:YES];
[[EaseMob sharedInstance].chatManager loginWithUsername:hnameS password:@"123" error:&err];
[[EaseMob sharedInstance].chatManager asyncLoginWithUsername:hnameS
password:hpwdS
completion:^(NSDictionary *loginInfo, EMError *error) {
NSLog(@"00+++");
NSLog(@"登录成功-------%@",loginInfo);
} onQueue:nil];
EMError *err=[[EaseMob sharedInstance] registerSDKWithAppKey:@"..." apnsCertName:@"..."];
[[EaseMob sharedInstance].chatManager removeDelegate:self];
[[EaseMob sharedInstance].chatManager addDelegate:self delegateQueue:nil];
[[EaseMob sharedInstance].chatManager asyncLogoffWithUnbindDeviceToken:YES];
[[EaseMob sharedInstance].chatManager loginWithUsername:hnameS password:@"123" error:&err];
[[EaseMob sharedInstance].chatManager asyncLoginWithUsername:hnameS
password:hpwdS
completion:^(NSDictionary *loginInfo, EMError *error) {
NSLog(@"00+++");
NSLog(@"登录成功-------%@",loginInfo);
} onQueue:nil];
没有找到相关结果
已邀请:
1 个回复
祥瑞