注册

ios 注册环信 error code = 208

我用自己申请的appkey 不可以注册,但是 用 demo 的appkey 却可以注册,
自己appkey 注册不成功的error code 是 208 ,求帮助,
开放模式和注册模式都是 一样的,
demo 代码是在网上下的,https://github.com/HyphenateInc/Hyphenate-Demo-iOS
 
 
附上代码
 
static NSString *const kHyphenateAppKey = @"1116161010115618#zhaijiatest";
 
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    self.window.backgroundColor = [UIColor whiteColor];

    UIViewController *vc = [[UIViewController     alloc] init];

    self.window.rootViewController = vc;

    [self.window makeKeyAndVisible];




    [self hyphenate];




    return YES;

}




-(void)hyphenate{

    

    EMOptions *options = [EMOptions optionsWithAppkey:kHyphenateAppKey];

    [[EMClient sharedClient] initializeSDKWithOptions:options];

    

    

    [[EMClient sharedClient] registerWithUsername:@"001" password:@"001" completion:^(NSString *aUsername, EMError *aError) {

        NSLog(@"--------- ------ aError.code=%d,aError.errorDescription=%@",aError.code,aError.errorDescription);
// --------- ------ aError.code=208,aError.errorDescription=Registration failed.

        if (!aError) {

            NSLog(@"reginster success");

        }

        else {

            switch (aError.code) {

                case EMErrorServerNotReachable:

                    NSLog(@"Connect to the server failed!");

                    break;

                case EMErrorUserAlreadyExist:

                    NSLog(@"already exists!");

                    break;

                case EMErrorNetworkUnavailable:

                     NSLog(@"No network connection!");

                    break;

                case EMErrorServerTimeout:

                     NSLog(@"Connect to the server timed out!");

                    break;

                default:

                     NSLog(@"Registration failed");

                    break;

            }

        }

    }];




}
 
已邀请:
麻烦将具体的注册log日志贴一下
已解决,换成官网上的sdk  就行了

要回复问题请先登录注册