Managing battery life for iOS 5 devices