I'm working on a socket based client-server app.
When a user running any iDevice on iOS 4, 4.2.1, 4.3.2, etc clicks the lock button while connected to the server, the connection remains alive.
However, when I click the lock button on any device running iOS 5, the connection is immediately destroyed and upon returning to the app from the lock screen I am presented with my NSAlertView that is called when the NSStreamEventErrorOccurred method is called.
I have had several clients test the app, and every one of them with iOS 5 has this exact same problem - no matter the device (iPod 2g, iPod 4g, iPhone 3GS, iPhone 4).
Were there any changes to the way iOS 5 devices handle locks? How can I fix this?
EDIT:
I should mention the project was started in Xcode 4 (iOS 4 sdk) and is now being used in Xcode 4.2.. Don't know if this matters or not.