My app is running in the background and must know when the device has been unlocked, in order to resume some important operations. The user relys on it still working even after the app enters background or the device gets locked and unlocked again.
Someone suggested using UILocalNotification to notify the app but I don’t see how? Also I want no dialogue to prompt the user with some question. App just has to perform a quick operation upon unlock.
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html
UIApplicationWillResignActiveNotification
A bit more accurately,
applicationWillResignActivegets called when the app moves to the background, not only due to screen lock.