问题描述
首次登陆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];
解决方案
以解决 代码顺序写错 了