I´m working on an application in which, when it is pushed in background via the home button, a timer should start and when the application gets back to foreground and the timer has passed a certain amount of time, something should be executed.
My questions are
- How do I handle the events when my app goes to
background/foreground? - Is there a special method or an other technique?
Thanks a lot.
A possible implementation could look like:
and