is it possible to determine how many times my iPhone has been locked and unlocked programmatically when app is foreground and background as well. Code snippet will help a lot...
Asked
Active
Viewed 135 times
0
-
1Possible duplicate of [How can I detect screen lock/unlock events on the iPhone?](http://stackoverflow.com/questions/7888490/how-can-i-detect-screen-lock-unlock-events-on-the-iphone) – Palle Feb 21 '16 at 13:37
1 Answers
0
There's no way to get this information from your App.
You can only know when your app goes to foreground/background via your App Delegate, but not what the user does outside of your App.

fdiaz
- 2,600
- 21
- 27
-
There are apps like breakfree & instant with this feature running in appstore. – Karthik Mitta Feb 22 '16 at 14:08