Hi,
we have a problem with the syncronistation to SUP 2.1 #3 from a iOS-Device (iPad)
In the SUP ControlCenter I can see that my manual on-boarded(registered) user is connected to the SUP and have the state "online".
When I call "registerApplication" the app didn't register to the sup and the CallbackHandler throw the error "[ERROR] [SUPApplication.m:899] application registration taking longer than 60".
In the past we could register successfully to sup with the same code which you can see here:
staticSUPConnectionController *appConnectionController;
+(void)beginApplicationSetup {
if (!appConnectionController) {
appConnectionController = [[[SUPConnectionControlleralloc] init] retain];
appConnectionController.callbackHandler = [[SUPCallbackHandlergetInstance]retain];
}
//nur wenn wir wirklich diconnected sind verbinden wir uns sonst sind wir in irgend einer Art verbunden
if ([SUPApplicationconnectionStatus] == SUPConnectionStatus_DISCONNECTED) {
//start setting up the conection
[appConnectionControllersetupApplicationConnection];
}
else {
PRPLog(@"App ist schon verbunden mit SUP");
}
}
-(void)setupApplicationConnection {
SUPApplication *app = [SUPApplicationgetInstance];
//setzen der AppID
[app setApplicationIdentifier:@"SM4R_BF"];
//calbackHandler setzen
[app setApplicationCallback:self.callbackHandler];
SUPConnectionProperties* properties = [app connectionProperties];
[properties setServerName:@"SDRAFARIA"];
[properties setPortNumber:5001];
[properties setUrlSuffix:@""];
[properties setFarmId:0];
[properties setNetworkProtocol:@"http"];
SUPLoginCredentials *loginCred = [SUPLoginCredentialsgetInstance];
[loginCred setUsername:@"manuelErstellterUser"];
[loginCred setPassword:nil];
[properties setLoginCredentials:loginCred];
[properties setActivationCode:@"manuelErstellterUserPasswort"];
if (![SM4R_BFSM4R_BFDBdatabaseExists]) {
[SM4R_BFSM4R_BFDBcreateDatabase];
}
SUPConnectionProfile *cp = [SM4R_BFSM4R_BFDBgetSynchronizationProfile];
[cp setNetworkProtocol:@"http"];
[cp setPortNumber:2480];
[cp setServerName:@"SERVERNAMEXX"];
[cp setDomainName:@"default"];
[cp setUser:@"supAdmin"];
[cp setPassword:@"supAdminPasswort"];
[cp setAsyncReplay:YES];
[cp enableTrace:YES];
[cp setClientId:@"0"];
[SM4R_BFSM4R_BFDBregisterCallbackHandler:self.callbackHandler];
[SM4R_BFSM4R_BFDBsetApplication:app];
if ([app registrationStatus] == SUPRegistrationStatus_REGISTERED) {
//reconnection
[app startConnection:60];
}
else {
//first time connection
[app registerApplication:60];
}
}
-(void) startConnection{
[SUPConnectionControllerbeginApplicationSetup];
}
Here are the last debugmessages from the device during the registerAplication:
2013-01-01 21:49:54.706 SM4R sales[29074:2260f] onConnectionStatusChanged(SUPConnectionStatusType): status = 105, code = 0, message =
2013-01-01 21:49:54.708 SM4R sales[29074:2260f] =================================================
2013-01-01 21:49:54.949 SM4R sales[29074:23803] ================================================
2013-01-01 21:49:54.950 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [URLPrefix - /tm/?cid=%cid%]
2013-01-01 21:49:54.951 SM4R sales[29074:23803] ================================================
2013-01-01 21:49:54.952 SM4R sales[29074:23803] ================================================
2013-01-01 21:49:54.953 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [URLPrefix - /tm/?cid=%cid%]
2013-01-01 21:49:54.954 SM4R sales[29074:23803] ================================================
2013-01-01 21:49:55.092 SM4R sales[29074:23803] =================================================
2013-01-01 21:49:55.093 SM4R sales[29074:23803] onConnectionStatusChanged(SUPConnectionStatusType): status = 103, code = 0, message =
2013-01-01 21:49:55.094 SM4R sales[29074:23803] =================================================
2013-01-01 21:49:55.096 SM4R sales[29074:23803] =================================================
2013-01-01 21:49:55.096 SM4R sales[29074:23803] onConnectionStatusChanged(SUPConnectionStatusType): status = 103, code = 0, message =
2013-01-01 21:49:55.097 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:14.726 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:14.727 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [Default - 20130101T214913]
2013-01-01 21:50:14.730 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:14.732 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:14.734 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [Default - 20130101T214913]
2013-01-01 21:50:14.735 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:14.741 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:14.742 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [Default - 1]
2013-01-01 21:50:14.744 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:14.745 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:14.747 SM4R sales[29074:23803] onRegistrationStatusChanged: status = 203, code = 0, message = (null)
2013-01-01 21:50:14.748 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:14.757 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:14.830 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [Default - 1]
2013-01-01 21:50:14.832 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:14.833 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:14.834 SM4R sales[29074:23803] onRegistrationStatusChanged: status = 203, code = 0, message = (null)
2013-01-01 21:50:14.835 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:44.722 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:44.723 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [Default - 20130101T214932]
2013-01-01 21:50:44.724 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:44.726 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:44.727 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [Default - 20130101T214932]
2013-01-01 21:50:44.729 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:44.734 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:44.764 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [Default - 1]
2013-01-01 21:50:44.827 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:44.884 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:44.886 SM4R sales[29074:23803] onRegistrationStatusChanged: status = 203, code = 0, message = (null)
2013-01-01 21:50:44.980 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:44.982 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:44.984 SM4R sales[29074:23803] onApplicationSettingsChanged: names = [Default - 1]
2013-01-01 21:50:44.985 SM4R sales[29074:23803] ================================================
2013-01-01 21:50:44.997 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:44.998 SM4R sales[29074:23803] onRegistrationStatusChanged: status = 203, code = 0, message = (null)
2013-01-01 21:50:44.999 SM4R sales[29074:23803] =================================================
2013-01-01 21:50:54.535 SM4R sales[29074:1dc03] [ERROR] [SUPApplication.m:899] application registration taking longer than 60