I am working on a socket based application.
When a user starting any iDevice in iOS 4, 4.2.1, 4.3.2, etc., presses the lock button when connecting to the server, the connection remains alive.
However, when I press the lock button on any device running iOS 5, the connection is terminated immediately, and after returning to the application from the lock screen, I see my NSAlertView, which is called when the NSStreamEventErrorOccurred method is called.
I had several clients testing the application, and each of them with iOS 5 has the same problem - regardless of the device (iPod 2g, iPod 4g, iPhone 3GS, iPhone 4).
Have there been any changes regarding how iOS 5 devices handle locks? How can i fix this?
EDIT:
I should mention that the project was launched in Xcode 4 (iOS 4 sdk) and is now used in Xcode 4.2. I donโt know if it matters or not.
source share