cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.1.3 native iOS app not running on physical device

Former Member
0 Kudos

Hello,

I am facing the following problem, my compiled OS app based on SUP 2.1.3 is running fine on the iOS simulator but when i try to run it on a physical device then it doesn't run and in the debug console i get the following output:

2012-11-07 14:51:03.002 Speiseplan[1471:707] Running the app for the first time.

2012-11-07 14:51:03.005 Speiseplan[1471:707] Delete preexisting messaging vault

2012-11-07 14:51:03.169 Speiseplan[1471:707] Delete preexisting SUP101 data vault

2012-11-07 14:51:03.317 Speiseplan[1471:707] Create new SUP101 data vault and store credentials and a generated encryption key

2012-11-07 14:51:03.481 Speiseplan[1471:707] Create new messaging vault and leave it unlocked

2012-11-07 14:51:05.392 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.394 Speiseplan[1471:707] onApplicationSettingsChanged: names = [ServerName - 172.23.34.123]

2012-11-07 14:51:05.395 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.447 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.449 Speiseplan[1471:707] onApplicationSettingsChanged: names = [ServerPort - 5001]

2012-11-07 14:51:05.451 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.505 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.507 Speiseplan[1471:707] onApplicationSettingsChanged: names = [URLPrefix - ]

2012-11-07 14:51:05.509 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.561 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.562 Speiseplan[1471:707] onApplicationSettingsChanged: names = [FarmID - 0]

2012-11-07 14:51:05.564 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.613 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.614 Speiseplan[1471:707] onApplicationSettingsChanged: names = [Username - supAdmin]

2012-11-07 14:51:05.616 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.890 Speiseplan[1471:707] Got the encryption key: d35dc3e7be40efdd79e3af05035e02e37e8017b0050840b9e83044f3903d13defde3de45f02ec013d0fce7be85079103

2012-11-07 14:51:05.902 Speiseplan[1471:707] =================================================

2012-11-07 14:51:05.904 Speiseplan[1471:707] onConnectionStatusChanged: status = 202, code = 0, message = (null)

2012-11-07 14:51:05.906 Speiseplan[1471:707] =================================================

2012-11-07 14:51:05.958 Speiseplan[1471:707] ================================================

2012-11-07 14:51:05.960 Speiseplan[1471:707] onApplicationSettingsChanged: names = [Default - ]

2012-11-07 14:51:05.962 Speiseplan[1471:707] ================================================

2012-11-07 14:51:06.018 Speiseplan[1471:707] ================================================

2012-11-07 14:51:06.019 Speiseplan[1471:707] onApplicationSettingsChanged: names = [Default - 0]

2012-11-07 14:51:06.021 Speiseplan[1471:707] ================================================

2012-11-07 14:51:06.062 Speiseplan[1471:707] ================================================

2012-11-07 14:51:06.065 Speiseplan[1471:707] onApplicationSettingsChanged: names = [ActivationCode - ]

2012-11-07 14:51:06.067 Speiseplan[1471:707] ================================================

2012-11-07 14:51:06.409 Speiseplan[1471:707] =================================================

2012-11-07 14:51:06.410 Speiseplan[1471:707] onHttpCommunicationError: errorCode = 500

2012-11-07 14:51:06.412 Speiseplan[1471:707] =================================================

2012-11-07 14:51:06.576 Speiseplan[1471:707] =================================================

2012-11-07 14:51:06.577 Speiseplan[1471:707] onHttpCommunicationError: errorCode = 500

2012-11-07 14:51:06.578 Speiseplan[1471:707] =================================================

2012-11-07 14:51:06.836 Speiseplan[1471:707] =================================================

2012-11-07 14:51:06.837 Speiseplan[1471:707] onHttpCommunicationError: errorCode = 500

2012-11-07 14:51:06.837 Speiseplan[1471:707] =================================================

2012-11-07 14:51:06.963 Speiseplan[1471:707] [ERROR] [SUPApplication.m:959] error @ registerApplication MessagingClientException {

    ErrorCode = 552;

    ErrorMessage = "";

}

2012-11-07 14:51:06.965 Speiseplan[1471:707] =================================================

2012-11-07 14:51:06.967 Speiseplan[1471:707] onConnectionStatusChanged: status = 201, code = 14811, message = code = 552: message = MCLERR_UNKNOWN_ERROR

All the app settings are the same like on the simulator but still doesn't run.

I could not find any information about this, do you have any piece of information on how to solve the problem?

Thanks!


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I can add that with manual registration the error in the log looks a little bit different:

2012-11-08 09:00:23.821 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:23.831 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:23.838 Speiseplan[1645:4403] onConnectionStatusChanged: status = 102, code = 0, message =

2012-11-08 09:00:23.840 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:23.841 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:23.842 Speiseplan[1645:4403] onConnectionStatusChanged: status = 102, code = 0, message =

2012-11-08 09:00:23.843 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.137 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.139 Speiseplan[1645:4403] onHttpCommunicationError: errorCode = 500

2012-11-08 09:00:33.141 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.209 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.212 Speiseplan[1645:4403] onHttpCommunicationError: errorCode = 500

2012-11-08 09:00:33.213 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.280 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.281 Speiseplan[1645:4403] onHttpCommunicationError: errorCode = 500

2012-11-08 09:00:33.282 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.297 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.299 Speiseplan[1645:4403] onConnectionStatusChanged: status = 105, code = 552, message = Error: 552 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024.

2012-11-08 09:00:33.301 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.302 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.304 Speiseplan[1645:4403] onConnectionStatusChanged: status = 105, code = 552, message = Error: 552 Detail: Session failed Source: /Users/iotabuilder/svn/Pioneer/MOClients/iPhone/../Common/C/moClient.cpp 1024.

2012-11-08 09:00:33.305 Speiseplan[1645:4403] =================================================

2012-11-08 09:00:33.314 Speiseplan[1645:4403] =================================================

Former Member
0 Kudos

Hi Marcin,

did you solved the problem?

I have the same in my application.

Thanks,

André

Former Member
0 Kudos

Hi Andre,

yes, I could solve the problem. For me in the end the problem was with the proxy server which we use in our company. The ports were blocked on the proxy so I had to remove the proxy setting on my mobile device to make it work.

I hope that helps you.

Regards,

Marcin

Answers (2)

Answers (2)

_IvanFemia_
Active Contributor
0 Kudos

Hi,

the url 172.23.34.123 is not reachable.

Are you in 3G or WiFi?

On WiFi, have you a proxy exclusion?

On 3G, is ip reachable form outside?

Regards,

Ivan

Former Member
0 Kudos

the server ip is internal and I am using internal WiFi connection (the same as the macbook with simulator - where it works perfectly). The HWC app is also working perfectly on the physical devices but the native app not.

Former Member
0 Kudos

Hi Marcin,

Well, since you share us your IP, how about if you share us your code for connecting?, Another question, does your app autoregisters to the SCC or do you have to create an application connection, and map it in your app?

Regards,

Daniel

_IvanFemia_
Active Contributor
0 Kudos

Are you using auto or manual registration?

I don't see in the log any reference to the package domain, have you configured this setting on the device?

Former Member
0 Kudos

The ip is not the true server ip. The code for connecting is the same as for the SUP101 tutorial, and the code works perfectly on the simulator so i think it is not a code problem.

I have tried auto-register and manual connection and both doesn't work on the physical device(both work fine on simulator).

I am already out of ideas about what the problem can be.

Former Member
0 Kudos

I have tried auto-register and manual connection and both doesn't work on the physical device(both work fine on simulator).

References to the package domain? What exactly do you mean with this? How should i configure the package domain on the device?

_IvanFemia_
Active Contributor
0 Kudos

Before you subscribe to SUP

SUPConnectionProfile *cp = [***DB getConnectionProfile];

[cp.syncProfile setDomainName:@"yoursuppackagedomain"];

Sounds strange that on simulator you can connect...

have you consulted your network colleagues? In order to exclude any network config.

Regards

Former Member
0 Kudos

Yes, the package domain is set in the code like that:

        SUPConnectionProfile *cp = [spSpDB getConnectionProfile];

        [cp.syncProfile setDomainName:@"default"];

In the SCC the package domain is also set to default.

I think that it should not be a network problem since the mobile devices can ping the server without any problems and the HWC is working without problems.

markteichmann
Product and Topic Expert
Product and Topic Expert
0 Kudos

Maybe the includes during compilation are for the simulator and not for the phone? And the problems arise through wrong settings in the Build path or linker settings?

Former Member
0 Kudos

Hello Marcin,

This happened to me when i was not able to reach the server, because an internet connection problem.

Is your device connected to the Internet, and CAN reach the server? try to open the SCC from your device.

Regards,

Daniel

Former Member
0 Kudos

Yes, i can reach the server. My iPhone / iPad both have internet connection and are able to ping the server ip. The HWC app is working perfectly from the same devices.