Skip to content

fix auto update background behavior#315

Merged
0xCUB3 merged 6 commits into
mainfrom
issue-299-auto-update
Apr 2, 2026
Merged

fix auto update background behavior#315
0xCUB3 merged 6 commits into
mainfrom
issue-299-auto-update

Conversation

@0xCUB3

@0xCUB3 0xCUB3 commented Apr 2, 2026

Copy link
Copy Markdown
Owner

macOS auto-update now uses a bundled launch agent that wakes wBlock in background-update mode while the app is closed.

  • Adds persistent iOS diagnostics for BGAppRefresh, BGProcessing, silent push, and foreground catch-up attempts in Settings.
  • Updates Settings, README, and privacy policy copy so Safari opening is no longer presented as an update trigger and the platform behavior matches the code.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements a bundled launch agent for macOS to facilitate background filter updates while the app is closed. It introduces a new FilterUpdateAgent helper tool and manages its registration via SMAppService based on user settings. Additionally, the PR significantly expands the diagnostic logging for background tasks, silent pushes, and update scheduling across both macOS and iOS, surfacing this information in the settings view. The code also refactors security-scoped URL access into a reusable extension. Review feedback highlights an opportunity to make the app bundle path discovery more robust in the helper tool and recommends using enums instead of raw strings for diagnostic results to improve maintainability.

Comment thread FilterUpdateAgent/main.swift Outdated
Comment thread wBlock/SettingsView.swift
@0xCUB3 0xCUB3 merged commit 7986f1a into main Apr 2, 2026
1 check passed
@0xCUB3 0xCUB3 deleted the issue-299-auto-update branch April 2, 2026 11:06
@0xCUB3 0xCUB3 restored the issue-299-auto-update branch April 2, 2026 11:07
@0xCUB3 0xCUB3 deleted the issue-299-auto-update branch April 2, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant