0

Does anyone know if it's possible for an app running in the background to know when the phone is in use vs. when it's asleep?

Thanks.

barrylachapelle
  • 967
  • 4
  • 13
  • 34

1 Answers1

0

You can't do this using a public API, keep in mind the iOS app should have control only over its own behavior not the device's.

If are not planning to publish on AppStore, check below post:

Detect screen on/off from iOS service

Community
  • 1
  • 1
Tarek Hallak
  • 18,422
  • 7
  • 59
  • 68