I have a timer function which runs using setInterval and calls itself every second to count seconds. After a certain time is does something, for example vibrates. On android, this works fine, I can switch out of the app, and go into another app, and after the time is over, it will vibrate.
In iOS this doesn’t happen at all, everything pauses until I open up the app again. I’ve tried:
- Enabling background modes in xcode
- Enabling the audio background mode in xcode