Question

My iPhone application is based on remote desktop protocol which communcates with PC using socket programming. Everything works fine in iOS4, but now i encounter an issue with iOS5 based device.

My socket get's disconnected when user presses lock button in iOS5 based devices. I have developed a cocoa based static socket library which does all communication for my iphone app.

FYI: I just call a function exposed from my library to start the communication. I call it as a background thread using [self performSelectorInBackGround:@selector(triggerCommunication:) withObject:IP_Address];

a. Why does the socket disconnects on pressing lock button in iOS5 ? b. Is there a way to prevent the socket from not being disconnect?

Thanks,

Was it helpful?

Solution

If we compile with iOS5 SDK, and run application, then socket disconnects on clicking lock button.

I recompiled my application with iOS4 SDK and tested my application on iOS5 based iPhone. And now socket didnot disconnect even after locking!.

Thanks

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top