applicationWillTerminate to wrap up Background Recording

Hello together,

the user is able to do recordings with my app. The recordings also runs, while the App is in Background.

I have Background Modes Audio & Background enabled.

When the user accidentally terminates the App while the recording is still running, the whole recording is lost.

I tried AppDelegate applicationWillTerminate on my iOS 26 App and it works perfectly to wrap up the LiveActivity that is shown while the recording is active. But it does not save the Audio and also doesn't update the Widgets (they are interactive and show a different state while recording and stay stuck in recording-state on accidental termination).

Any ideas?

Best wishes, Dominik

applicationWillTerminate to wrap up Background Recording
 
 
Q