Skip to content

Fix iOS widget background refresh - #144

Merged
austin-smith merged 2 commits into
mainfrom
fix-ios-widget-background-refresh
Sep 19, 2026
Merged

austin-smith merged 2 commits into
mainfrom
fix-ios-widget-background-refresh

Conversation

@austin-smith

@austin-smith austin-smith commented Sep 18, 2026

Copy link
Copy Markdown
Owner

What Changed

  • Enable background fetch for iOS widget refreshes.
  • Use the iOS 27 task submission API while retaining iOS 26 support, and build iOS CI with Xcode 27.
  • Remove redundant request cancellation, log registration and submission results, and avoid retaining completed refresh tasks through the expiration handler.
  • Replace widget snapshots atomically, add cancellation regression tests, and update the widget documentation.

Why

The app registered and scheduled background refresh tasks without declaring the required fetch background mode, preventing iOS from running them. Atomic snapshot replacement also prevents widgets from encountering a missing file during an update.

Validation

  • 225 macOS tests passed, including active and queued refresh cancellation.
  • Signed macOS Debug and unsigned iOS Debug/Release builds passed with Xcode 27.
  • Checked the built iOS background-mode and task-identifier metadata; snapshot filesystem smoke checks passed.
  • SwiftLint and git diff --check passed.
  • Physical-device background launch, expiration, and locked-device behavior have not been tested.

@austin-smith
austin-smith marked this pull request as ready for review September 19, 2026 02:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-19T02:37:59.440967Z 190b07a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 190b07af0e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
@austin-smith
austin-smith merged commit c5e1e44 into main Sep 19, 2026
3 checks passed
@austin-smith
austin-smith deleted the fix-ios-widget-background-refresh branch September 19, 2026 02:42
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