大佬们,单点登录功是怎么配置的?
我的代码:
EMOptions *options = [EMOptions optionsWithAppkey:@"1185180731177268#zhinengxiaofangshuan"];
options.apnsCertName = @"DevCer";
[[EMClient sharedClient] initializeSDKWithOptions:options];
EMError *registerError = [[EMClient sharedClient] registerWithUsername:@"8001" password:@"111111"];
if (registerError==nil) {
NSLog(@"注册成功");
}
EMError * loginError = [[EMClient sharedClient] loginWithUsername:@"8001" password:@"111111"];
if (!loginError) {
NSLog(@"登录成功");
}
EMError *error = [[EMClient sharedClient] loginWithUsername:@"8001" password:@"111111"];
if (!error)
{
[[EMClient sharedClient].options setIsAutoLogin:YES];
}
账号被挤下来的代理方法是userAccountDidRemoveFromServer,可是我两个手机登录同一个账号,都没执行userAccountDidRemoveFromServer方法,大佬们知道怎么设置吗?
EMOptions *options = [EMOptions optionsWithAppkey:@"1185180731177268#zhinengxiaofangshuan"];
options.apnsCertName = @"DevCer";
[[EMClient sharedClient] initializeSDKWithOptions:options];
EMError *registerError = [[EMClient sharedClient] registerWithUsername:@"8001" password:@"111111"];
if (registerError==nil) {
NSLog(@"注册成功");
}
EMError * loginError = [[EMClient sharedClient] loginWithUsername:@"8001" password:@"111111"];
if (!loginError) {
NSLog(@"登录成功");
}
EMError *error = [[EMClient sharedClient] loginWithUsername:@"8001" password:@"111111"];
if (!error)
{
[[EMClient sharedClient].options setIsAutoLogin:YES];
}
账号被挤下来的代理方法是userAccountDidRemoveFromServer,可是我两个手机登录同一个账号,都没执行userAccountDidRemoveFromServer方法,大佬们知道怎么设置吗?
没有找到相关结果
已邀请:
1 个回复
Celebrate_G