Search Issue Tracker
Fixed
Fixed in 2021.3.40f1, 2022.3.33f1, 6000.0.0b15, 7000.0.0a1
Votes
0
Found in
2023.2.0a12
6000.0.37f1
Issue ID
UUM-56962
Regression
No
[Android] An issue that the sound does not stop while rendering, when a Unity app in multi-window loses focus(RUN_IN_BACKGROUND disabled)
This issue occurs when there is a Run in Background option(after {}2023.2.0a12){}.
Steps to reproduce:
- Create an Emply project and import this asset]
- Open the "SampleScene"
- Go to Edit > Project Settings > Player > Resolution and Presentation
- Uncheck Run In Background and check Resizable Window
- Go to File > Build Settings
- Click Build and Run button for Android Platform to install{}{{}}
- Open the Unity app.
- Press Recent apps button or Open the taskbar.
- And then select split screen ( put the app into multi-window mode)
- Choose an unrelated app(for example, Settings, Google Play, etc) to be secondary.
- Touch the Unity app
- Touch the unrelated app(Unity app loses focus)
Expected result: The rendering is paused and the sound is paused
Actual result: The rendering is paused but the sound is running.
Reproducible with: 2023.3.0a
Reproducible with devices:
- VLNQA00593 - Google Pixel Fold
- VLNQA00524 - Galaxy S23+
[https://partnerissuetracker.corp.google.com/issues/292444611#comment42]
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 6000.0.0b15):
Android: In multi-window mode, when "Run in background" is true and "Mute Other Audio Sources" is false, Unity will run and sound will always play. When "Run in background" is true and "Mute Other Audio Sources" is true, Unity will always run, but you will only hear the Unity app's sound if its window has focus. Sound will be muted when the Unity window is not in focus.
In multi-window mode, if "Run in background" is false, Unity will not run and sound will stop playing.