VoIP App closes after 10 seconds in background, although the microphone is being used.

I have an app where a user can talk with other people. If the user is currently in a call with someone else and then exits the app, the app closes after exactly 10 seconds. Even though the app uses the microphone and I have turned on Voice over IP in Background Modes, the app closes after this time. Before it closes it shows the orange icon in the top left corner, which indicates that the microphone is being used.

How can I prevent the app from closing when the user is in an active voice call?

I am using Swift and Xcode 13.1.

Replies

Were you ever able to solve this issue? I also have VOIP set in background modes but am running into the same issue.