I’ve been experiencing problems with audio playing at inappropriate times on Android, like when the App is not in focus or on the unlock screen of the phone. It seems that eventhough I’ve got Run In Background unchecked the game is in fact on at times in the background. The easiest way to reproduce it is by quickly turning the phone’s screen on and off while the game is running. This gets the phone to its unlock screen but with the sound of my game playing in the background. A logging of OnApplicationPause and OnApplicationFocus tells me that the game indeed is unpaused in the background.
Am I missing something or is this be a Unity bug? As it is now it leaves me to make some sort of global muting system, which feels like a weird solution to something that should be handled by the Unity player the problem is unmuting since I cannot listen to OnApplicationPause(true) as this obviously is triggered at the wrong time.