Offline time tracking

Hi guys,

Is it possible to keep track of the time in an app even if it is closed? For example, 20h after you closed the game, something happens.

If there is, where can I get some documentation about making it, or even some key words to search?
Thank you

As far as i know, you’d have to save the current time to playerprefs (Unity - Scripting API: PlayerPrefs) or some other saved file, and then when the app is relaunched, check the new system time and compare it to the saved time.

2 Likes