Post

Replies

Boosts

Views

Activity

Running Background Tasks
I am new to iOS development and I have been a little stuck trying to find some information on continuing a timer in the background. I know that trying to run a timer in the background is not a good idea and that it can yield some unexpected results. I do not actually want the timer object itself to run in the background, but to have its count notify the user that it has completed its interval. I simply want to notify the user by playing a sound or vibrating or both. Then repeat this process again until the user brings the app into the foreground and stops/pauses the timer or closes the app altogether. I do not want to have a local notification appear to the user that the timer is completed. Thank you
9
0
1.6k
Mar ’21