Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ internal PluginManager(AirConsole airConsole) {
onAudioFocusChangeCallback);

_airConsole = airConsole;
if (!_airConsole.IsAutomotive()) {
_airConsole.UnityPause += AbandonAudioFocus;
_airConsole.UnityResume += ResumeAudioFocus;
}

_airConsole.UnityDestroy += OnDestroy;

AirConsoleLogger.LogDevelopment(() => $"{nameof(PluginManager)} created.");
Expand All @@ -67,6 +72,8 @@ internal void ReportPlatformReady() {
_service.Call("reportPlatformReady");
}

private void ResumeAudioFocus() => RequestAudioFocus();

internal bool RequestAudioFocus() {
AirConsoleLogger.LogDevelopment(() => "RequestAudioFocus called.");
return _service.Call<bool>("requestAudioFocus");
Expand Down Expand Up @@ -101,6 +108,8 @@ internal void InitializeOfflineCheck() {
}

private void OnDestroy() {
_airConsole.UnityPause -= AbandonAudioFocus;
_airConsole.UnityResume -= ResumeAudioFocus;
_airConsole.UnityDestroy -= OnDestroy;
AirConsoleLogger.LogDevelopment(() => "OnDestroy called.");

Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This includes security related updates like requiring fixed Unity versions and i

### Changed

- **Android Support**: Better dependency handling through gradle processor integration. Removal of included files where possible.
- **Android Support**: Better dependency handling through Gradle processor integration. Removal of included files where possible.
- **Android Target SDK:** Increased to 35 to meet Google Play requirements per Nov 1, 2025.
- **Unity Minimum Versions:** The Unity minimum versions have been updated to match `CVE-2025-59489` fix versions.
- **Code Style**: Examples and scripts have been aligned on style.
Expand Down Expand Up @@ -261,4 +261,4 @@ Gameplay rounds are controlled through AirConsole's setActivePlayers API.
### Deprecated

- Support for i386 OSX bundle
- The webview no longer supports rendering on OSX.
- The webview no longer supports rendering on OSX.