I need to start the timer in the background when my application is closed, however I read that this is not possible. I know that I can run it in the background for ~ 10 minutes, but I need much more (up to 2 hours).
I was wondering if there is a way to do this, keeping the timer value when the application is closed, the current time, retrieving them when re-opened and comparing them with the current time to get the difference. Then I can restart the timer and add the values ββtogether.
Anyone have any suggestions on how I can do this?
Thank!
ios swift nstimer
user3746428 Jul 26 '15 at 20:45 2015-07-26 20:45
source share