How to prevent AntennaPod to be killed when in background?

App version: 2.6.2 (from F-Droid)
Android version: 11 RQ1.201004.002
Device model: Redmi Note 8 MIUI Global 12.5.2.0

Hello,
I usually let AntennaPod playing the potdacts in background, and then starting to do something else with my smartphone. Unfortunately, after a few seconds, AntennaPod is killed. I guess, it is probably due to the system, and its strategy for managing resources, memory & co.
So, is there a mean to configure things for explaining to android that it should not kill the application which is handling the sound (as such it does not kill application which is handling the screen).
Best regards.
Christophe.

You can check the recommendations here Xiaomi | Don’t kill my app!

Many thanks for the advice. Since I turned off “MIUI optimizations” (in developers settings) things seems to work much better.
Best regards