Basically, how can you tell if the user locks the phone or leaves the app?
Even more interestingly, if you lock the app and the swipe on a notification from another app from the lock screen, how does Forest know you've unlocked your phone to another app?
(How Forest works: start a timer and lock your phone. If you use any other apps besides Forest while the timer is going on, you lose.)