Is there a way to identify when a user transitions from using the app to the lock screen?

Hi,


I'm trying to differentiate when a user is using their phone (e.g., on Google or another app) vs when a user is on the lock screen. We're trying to prevent cheating for our bar trivia app and in order to do this we need to know when the players are searching for Google for answers or they're just on the lock screen. Would love your thoughts and feedback on this!


Thanks,


Evan

Sorry, you're out of luck. There is no way to determine anything like that. You can know that the app has been sent to the background or otherwise interrupted but there is no way to know wether the cause was the sleep timer locking the screen or simply the user pressing the home button.

>we need to know when the players are searching for Google for answers


No problem....do some of the same searches and time them so you get an average, then check your game when it's been paused for the same period.


Or, consider you can't prohibit such activity, and put your effort into staying ahead of the blogs that make more money on eyeballs looking for cheats than you do on your app...

Is there a way to identify when a user transitions from using the app to the lock screen?
 
 
Q