How can I check my app's state (foreground or background)?

titoro
Thu, 01 Feb 2018 14:36:04 +0000
Platform & Builds

I want to know when my app is foregrounded.
Then I calculate elapsed time and give reward by elapsed time.
But I can’s find a way to check when my app is foregrounded.
Please help me.

2 posts - 1 participant