Keep fullscreen apps active in background on macOS >= 15#226
Open
Brawl345 wants to merge 2 commits into
Open
Conversation
Since macOS 15, runningboardd suspends Catalyst apps as soon as their scene becomes invisible (window on another Space, minimized, hidden), freezing PlayCover games completely. Games also pause themselves because the engine receives the standard background lifecycle events. This commit does the following on macOS >= 15: 1. Plays an inaudible audio loop (AVAudioEngine, .playback + .mixWithOthers, output volume 0). Like on iOS, an app that is actively playing audio is exempt from suspension. Requires UIBackgroundModes: [audio] in the app's Info.plist. 2. Hides the background transition from the game: drops the willResignActive/didEnterBackground notifications and neuters the corresponding app/scene delegate callbacks, so engines such as Unity never pause their player loop. Because the shutdown sequence replays exactly these suppressed events (quitWhenClose does so explicitly, Cmd+Q via the system), all quit paths are hooked through NSApplication.terminate to stand down the suppression and the audio exemption first, so games can still save their state and exit cleanly. Verified with Genshin Impact, Honkai: Star Rail and ZZZ on macOS 27 Beta: the game keeps running at full speed while its window is swiped away, and quits cleanly via both the close button and Cmd+Q. Fixes PlayCover/PlayCover#1568 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
JoseMoreville
requested changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disclamer: This was
vibesloppedmade with Claue Fable 5 (before it was taken down luckily!), I just steered and verified it.This fixes the "apps are paused in background when fullscreen and I swipe away" that was introduced in macOS 15 for Catalyst apps. It blocks certain calls and "plays" a silent audio-loop since apps that play audio are kept alive (for music players on iOS).
Few things to note:
didEnterBackgroundNotificationetc are blocked because games will pause themselves, too (in addition to the hard block introduced by macOS 15)Fixes PlayCover/PlayCover#1568