Skip to content

T137: a background download's events start the ended app, which hands them to its session - #276

Open
Fausto95 wants to merge 9 commits into
t137-silent-pushfrom
t137-download
Open

Fausto95 wants to merge 9 commits into
t137-silent-pushfrom
t137-download

Conversation

@Fausto95

@Fausto95 Fausto95 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

A background download's events now reach Lucent code in a process iOS starts for them, with no JavaScript (T137's other item).

  • lucent-background-task gains download.lucent.ts, a launch module. It answers backgroundURLSession for its session (dev.lucent.example.downloads) and makes the session again by that identifier. Once the delegate hears urlSessionDidFinishEvents_forBackgroundURLSession, it calls done. download(url) starts one; each step logs a LUCENT_DOWNLOAD line.
  • The Platform screen starts a download from scripts/held-download.ts, which answers at once and holds the body open until the run releases it.
  • Last, the iOS device runs end the app with SIGKILL, release the download, and wait up to two minutes for LUCENT_DOWNLOAD events delivered. The silent push check (T137: a silent push to the ended app reaches its launch module #273) runs before it either way, and a failure reports what the server saw and the system's lines about the app.

Stacked on #273. #275, which lets the delegate leave out URLSessionDelegate's optional requirements, has merged.


Generated by Claude Code

@Fausto95 Fausto95 added the no-changeset Changes users can't see (docs, tests): no changeset needed label Oct 14, 2026 — with Claude
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/faustino-kialungilas-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
lucent Ignored Ignored Preview Oct 18, 2026 12:49pm UTC
website Ignored Ignored Preview Oct 18, 2026 12:49pm UTC

@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project lucent with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/faustino-kialungilas-projects?upgradeToPro=build-rate-limit

@Fausto95
Fausto95 force-pushed the ios-inherited-optional branch from 304bfa3 to f0dfb42 Compare October 14, 2026 11:03
@Fausto95
Fausto95 force-pushed the ios-inherited-optional branch from f0dfb42 to a445cb6 Compare October 14, 2026 11:04
@Fausto95
Fausto95 changed the base branch from ios-inherited-optional to t137-silent-push October 14, 2026 11:04
@Fausto95
Fausto95 force-pushed the t137-download branch 2 times, most recently from 673012a to d7e9d9d Compare October 14, 2026 16:33
@Fausto95
Fausto95 force-pushed the t137-silent-push branch 2 times, most recently from 0369810 to b51fc12 Compare October 14, 2026 17:37
@Fausto95
Fausto95 force-pushed the t137-download branch 2 times, most recently from 632e35a to d7366f3 Compare October 14, 2026 17:49
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project lucent with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/faustino-kialungilas-projects?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

Deployment failed for project website with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/faustino-kialungilas-projects?upgradeToPro=build-rate-limit

… them to its session

lucent-background-task gains a launch module for a background URL session:
it answers backgroundURLSession for its session, makes the session again
by its identifier, and calls done once the delegate hears the events end.
The Platform screen starts a download that scripts/held-download.ts holds
open; last, the iOS device runs end the app, let the download finish, and
look for the launch module's LUCENT_DOWNLOAD line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
…sion takes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
The device run found the held download asked for by nobody: the case now
says whether the session receives, or why it failed, while the app runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
…RL session needs

The background transfer daemon dropped the unsigned app's connection
(NSCocoaErrorDomain 4097), so the download failed at once with
NSURLErrorDomain -1. Xcode signs a simulator build by default (Sign to Run
Locally), which needs no team, and the download then receives. The run
checks the download before the push, whose relaunch may cancel it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
…times it

The signed build's download finished and iOS started the ended app for
the session's events, which its launch module handed on, but two minutes
after the release: past the run's 120 seconds. It waits 300 now, says how
long the events took, and on a failure, when each line came.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
…n, and how long the events took

The bare example's download finished, but iOS started the app for its
events after two minutes once, and not within five the next time; the
Expo example's came in time. The failure now quotes the daemon's and the
schedulers' lines about the session, and a pass says how long they took.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB
The bare example's relaunch for the download's events came in five runs
of nine, after 40 to 153 seconds, and in four not within 300. The
download is now held the least, and no other screen's launch ends the
app between its start and its end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KaXTpjxQL34i1B21Jt4UMB

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changeset Changes users can't see (docs, tests): no changeset needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants