cancel
Showing results for 
Search instead for 
Did you mean: 

getting sync failed: -1305(mobilink communication error) while running app in xcode

Former Member
0 Kudos

Hi,

I am using SUP 2.2 sp02 cloud 30-days trail version. I have generated the code for iOS from Sup and then followed the pdf (sup_tutorial_ios_object_api_application_development) given in infocenter to create the application in xcode. i have done every setting as mentioned in the pdf. after running the app, i am able to subscribe the app successfully and in SCC also, device is showing online. But while clicking on synchronize, i am getting error "sync failed: -1305 (mobilink_communication_error)".

Also, i have created one android app also in the cloud sup as there is a provision to run the android app in cloud sup only, that app is working fine there but if i am running the same app from outside cloud (locally from my machine), i am getting sync error.

Please help me to resolve the issue.

thanks in advance.

regards,

Ankur Jindal

Accepted Solutions (1)

Accepted Solutions (1)

brenton_ocallaghan
Active Participant
0 Kudos

Hi Ankur,

Hmm this sounds interesting - the first thing I would do here is check to make sure you can communicate with your server successfully from your Xcode machine.

The old school way of checking if you can reach your server on the right port is to first check your MBS or messaging port - this is the port on which the registration of the device occurs on - so if you go to the URL of the server on port 5001 (standard MBS port for SUP) and then the directory /tm in a browser it should download a blank file called TM.

For example:

http://myAmazingSUPServer:5001/tm

If that much works then your device should register assuming your configuration is correct. For the Data sync and login you need to check the Replication ports (Standards are 2480/2481). These I usually check in chrome and literally returns a 404 not found but Chrome renders it like this:

I'd start by checking all this, if this works then you are most likely looking at a config issue on either your app or SUP.

Let me know how you get on,

Cheers,

Brenton.

brenton_ocallaghan
Active Participant
0 Kudos

Just adding some more to this:

If you are going over the secure port (2481) to the SUP server for your data sync then make sure you are not hitting a certificate issue where your simulator does not trust the computer it is connecting to as it is using perhaps a self signed certificate.

Brenton.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ankur,

If your using the relay server in your setup,

please refer the following thread.

http://scn.sap.com/thread/3439040

Regards

Dinesh.

Former Member
0 Kudos

1)You are  getting error because it is not able to resolve the host(unable to connect to socket).For synchronizing in ios simulator  you need to map the host name with ip address in host file of your mac machine.

Actually when you are synchronizing the device is searching  the server with host name and not IP address. So mapping is required.

2nd solution your simulator and smp server should be in the same network ie.same DNS