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!