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|[https://assetstore.unity.com/packages/templates/platformer-microgame-151055]]
# 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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
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.