App enters background when device sleeps on iOS 5.
In iOS 4.x and previous versions, my app would stay running as long as it was in the foreground even if the device went into sleep mode. It would not run in the background until you clicked the home button and sent it to the background. This is exactly how I want it to work.
I recently tried updating my app with the iOS 5 sdk and now every time the device (iPhone) sleeps my app goes into background mode.
Is there a way to prevent this from happening??
|