3

I'm trying to detect screen on/off events from a background service on iOS.

Because my app is not necessarily in the foreground, looking for app lifecycle events such as this aren't any use: Lock Unlock events iphone

The best solution I've got so far is to search through the system logs, looking for Springboard events. Problem is, it's a pretty expensive operation, and requires regular polling which is a waste of battery. The solution needs to work on non-jailbroken devices but doesn't necessarily need to be app-store approved.

Can anyone suggest something better?

Community
  • 1
  • 1
  • You should explicitly state if you are looking for a jailbreak or an App Store solution. – Nikolai Ruhe Jan 06 '12 at 14:45
  • Any luck? Wonder the same. – Sunkas Jan 07 '13 at 10:46
  • I've added an [answer to the question you linked to in your question](http://stackoverflow.com/a/14213968/119114). It uses the springboard events, but does not require searching through logs. – Nate Jan 08 '13 at 11:34
  • Possible duplicate of [Lock Unlock events iphone](http://stackoverflow.com/questions/706344/lock-unlock-events-iphone) – Vandit Mehta Nov 18 '16 at 11:12

0 Answers0