I have a problem to auto change the media volume when the app runs in background (it's like ignoring the media volume settings only). It's surely runs in the background (has all permission, requested and the battery optimizer let it run in the background), since it can change the ring volume according to the profiles.
Also when the app runs in the foreground, no problem to change the media volume according to the profiles.
The phone is a stock realme RMX1993 with Android 10.
Thnx for any help