Keep audio playing when the screen locks on iOS. Full lock screen & Control Center media controls — play, pause, seek — with a simple C# API.iOS only. Works with all render pipelines — audio playback runs in native Objective-C++ code, completely independent of Unity's rendering stack. Requires iOS Build Support installed via Unity Hub.Background Audio for iOS keeps your audio playing when the user locks their screen or switches apps — just like Spotify, Podcasts, and Apple Music.Built on Apple's native AVPlayer and MPRemoteCommandCenter, this plugin gives your Unity app full lock screen and Control Center media controls with zero manual Xcode configuration. • Lock screen & Control Center media controls Play/pause, seek bar, and 30-second skip buttons appear on the lock screen and in Control Center automatically, just like a native iOS music app. • App icon in Now Playing Your app's icon appears in the Now Playing widget alongside the track title and artist name. • Streaming & local file support Pass an HTTPS URL to stream remotely hosted audio, or a local file path for on-device playback. • Interruption handling Audio pauses automatically for phone calls, Siri, and alarms, and resumes when the interruption ends. • Headphone unplug auto-pause Audio pauses when headphones are disconnected, matching iOS system behaviour. • Real-time progress callbacks Receive position, duration, and play state at ~2 Hz to drive your own UI. • Automatic Xcode configuration The included post-process script adds UIBackgroundModes: audio to Info.plist and links AVFoundation and MediaPlayer. No manual Xcode setup required. • Zero Unity AudioSource conflicts AVPlayer runs independently of Unity's audio system, so sound effects and UI audio are completely unaffected. • Simple C# API Five static methods: StartBackground, Play, Pause, Seek, Stop. All are no-ops outside iOS — no #if UNITY_IOS guards needed.Claude assisted with code generation and documentation


