I set the project's background mode as above.
I'm using the timer with the mic on. The timer currently works in the background, but the timer is paused during a phone call. Do you want to run a timer while on a call, but there is no way?
I am using timer as below.
playTimer = Timer.scheduledTimer(withTimeInterval: 0.03, repeats: true, block: { [weak self] _ in
self?.sendBuffer()
})