Sound muted when changing apps while using nowPlayingInfo notification

I have been able to implement a MPNowPlayingInfoCenter.nowPlayingInfo widget on my JUCE app after discarding the AVAudioSessionCategoryOptionMixWithOthers option (as iOS doesn’t allow such notifications along with audio mixing).

I don’t mind limiting the audio to my app, but even then, once I start my app and the notification becomes visible, switching to another app and back disconnects my audio somehow.

Anyone facing this problem or having any idea how to fix it?