Audio gone after app is minimized

Hi, we noticed our Audio is gone when app is minimized and restored. We use audio mixers but don’t have any logic related to OnApplicationFocus or anything like that. Can you advice?

Hey there! There are a couple of layers to this issue. There is a bug in the Unity visionOS player that results in AudioSources failing to UnPause when the app is resumed, which still needs to be solved. In addition, versions of com.unity.xr.visionos and com.unity.polyspatial.visionos prior to 0.7.1 were missing the necessary hooks to call OnApplicationFocus.

So, if you have the most recent packages, you can use the script I posted in this thread as a workaround. It just calls UnPause when the app is resumed.

We’re working on a fix for the underlying issue. It should be harmless to leave that workaround in place after the upgrade, but you may want to remove it after upgrading to a future Unity version that fixes the problem.

Another update, in case anyone following this thread is still blocked. I shared a workaround in another thread which should work in a pinch. I’m still working on a proper fix, but hope this helps!