1
即時通訊使用sup 2.1.3(SUP服務器)開發ios本機應用程序。但我在sybase控制中心註冊設備時遇到了錯誤。我已經搜索了這個,但我沒有得到任何解決方案。任何人都可以幫我解決這個問題嗎?SUP錯誤:571詳細信息:會話失敗來源:iOS中
我的代碼:
SUPConnectionProfile *sp = [self.connectionProfile syncProfile];
[sp setDomainName:@"default"];
[sp setServerName:@"john-PC"];
[sp setPortNumber:2480];
[sp setNetworkProtocol:@"http,https"];
[sp setNetworkStreamParams:@"trusted_certificates=;url_suffix="];
[sp applyPropertiesFromApplication];
code for registering the device :
@try
{
SUPApplication* app = [SUPApplication getInstance];
[app registerApplication:120]; // here i'm increasing to 60 10 120
@catch (SUPApplicationTimeoutException* tex)
{
NSLog(@"SUPApplicationTimeoutException");
NSLog(@"%@: %@--%@", [tex name],[tex message], [tex description]);
[self.loader hide:YES];
}
@catch (SUPPersistenceException * pe) {
NSLog(@"SUPPersistenceException");
NSLog(@"%@: %@", [pe name],[pe message]);
[self showNoTransportAlert:kSUP102ErrorFailure];
}
}
錯誤控制檯:
2014-03-25 14:12:49.085 SUP102[1891:6303] =================================================
2014-03-25 14:12:49.085 SUP102[1891:6303] onConnectionStatusChanged: status = 105, code = 571, message = Error: 571 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024.
2014-03-25 14:12:49.086 SUP102[1891:6303] =================================================
2014-03-25 14:12:49.087 SUP102[1891:6303] =================================================
2014-03-25 14:12:49.087 SUP102[1891:6303] onConnectionStatusChanged: status = 105, code = 571, message = Error: 571 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024.
2014-03-25 14:12:49.087 SUP102[1891:6303] =================================================
謝謝你的答覆..我解決了問題哪個happing,因爲我無法連接SUP服務器ipAddress從我的設備.. –