Hello all,
I am creating a run tracker and want to enable background capability for the timer and location.
The timer temporarily works in the background but then times out between 30 and 60 seconds and doesn't continue counting until it's reopened.
I have tried saving the time its closed and reopened and calculating the difference between them but this doesn't seem to work.
My code is attached and any help would be appreciated soo much as I've been stuck with this for a few weeks.
I've put the whole view controller in so some of the code isn't relevant but thought it may be helpful to have it all.
Thank you in advance!
I am creating a run tracker and want to enable background capability for the timer and location.
The timer temporarily works in the background but then times out between 30 and 60 seconds and doesn't continue counting until it's reopened.
I have tried saving the time its closed and reopened and calculating the difference between them but this doesn't seem to work.
My code is attached and any help would be appreciated soo much as I've been stuck with this for a few weeks.
I've put the whole view controller in so some of the code isn't relevant but thought it may be helpful to have it all.
Thank you in advance!