Question: How to add images to JQuery autocomplete which also fills hidden data inputs?

Answer: 
Defer `AVAudioSession.sharedInstance().setActive(true, error: nil)` till when you need to start playing audio. Starting the session immediately after the app launches stops playback on other apps.

More details:
<https://developer.apple.com/documentation/avfoundation/avaudiosession>
Xcode 10.3  

Swift 4.2  

Tested in iPhoneX (12.2), iPhone5s(11.0.3)

Functionality -> Play audio in silent mode + with other application audio.

Here is the code,

```
private func setupAudioSession() {
        //enable other applications music to play while quizView
        let options = AVAudioSession.CategoryOptions.mixWithOthers
        let mode = AVAudioSession.Mode.default
        let category = AVAudioSession.Category.playback
        try? AVAudioSession.sharedInstance().setCategory(category, mode: mode, options: options)
        //---------------------------------------------------------------------------------
        try? AVAudioSession.sharedInstance().setActive(true)
    }

```

I will suggest you to set this function in AppDelegate -> didFinishLaunchingWithOptions....