When I close my iPad’s magnetic cover while my JUCE7 iOS app is running, after 1 second the audio stream stops. This coincides with a audioSessionChangedInterruptionType call of type AVAudioSessionInterruptionTypeBegan. AVAudioSessionInterruptionTypeEnded is never received.
I have BACKGROUND_AUDIO_ENABLED TRUE in my CMake build definition and this works fine for ordinary locking and unlocking of the screen. The app keeps playing audio while in normal lock.
My app is 100% open source and CMake so you can try it yourself: GitHub - izzyreal/vmpc-juce: JUCE implementation of VMPC2000XL
Also tried on develop branch.
I’ll try to create a minimal reproduction and add it to this post.