On iOS Build, Audio Gets Muted When App Loses Focus
I have just tested my app with TestFlight, but I have a strange issue:
At start, the audio works just fine - even better than on Android (in terms of delay). But, once the app loses its focus (for example, going out from the app and back in, or starting Siri), the app audio gets muted and never comes back to normal until I restart the app (closing it completely from the recents menu).
To be noted, the audio doesn't get muted when the In App Purchase popup shows up, when the user pulls the notifications/quick settings tray, or when locking and unlocking the screen.
Built from unity 2018.3.5f1. Tested on iPhone 6, iOS 12.1.4. Playing audio using Audio Source with different audio clips, both for background music and sound effects. (some of the files are .mp3 and some are .wav).
Another note: I have music controls in my game which let the users mute or unmute the background music and the sound effects. In theory they pull the Unity Audio Mixer's db value down to -80db and back to 0db, but no they don't work at all. So I guess the problem is not with the Audio Mixer.
Thanks!
Your answer
Follow this Question
Related Questions
How to mute multi-able audioclips within a single audiosource? 0 Answers
What causes weird cracking/popping sound when playing 3d sound 1 Answer
Help with audio 2d 1 Answer
Cannot Play audio clip using OnTriggerEnter C# 0 Answers
player jump audio wont save when i put in custom audio i recorded 1 Answer