Background audio on iOS

Hey, I want my audio to keep playing when my phone goes to sleep.
This is my setup:

  • sound is coming from emitters in a 3D scene
  • built in Unity Audio has been disabled
    - audio session category in Xcode is set to AVAudioSessionCategoryPlayback
    - Audio, Airplay, and Picture in Picture under enable Custom Background Behaviours is enabled (and shows up in both the Info.plist and under Background Modes in Xcode)
  • audio keeps running with the app in the background, but it stops when the Ring/Silent switch is set to silent and the screen is locked

Any ideas? Thanks!

I found that the audio works even when the Ring/Silent switch is set to silent.
However, when the screen is locked, the audio stops.
This doesn’t seem to be related to FMOD, but rather a Unity issue.