iOS: Can I detect if the device screen is on/off?
<p>How can I check if the screen is on or off in iOS? I'd like to know if the screen is currently on, even my app is in the background. I'd like to have an event listener on this. thanks.</p>