Repository navigation
Conversation
mwolson
force-pushed
the
contrib/live-activity-unregistered-card
branch
from
November 15, 2026 20:22
f6d345f to
e34ad15
Compare
mwolson
changed the base branch from
contrib/confirm-held-completions
to
contrib/quiet-background-wake
November 15, 2026 22:41
mwolson
force-pushed
the
contrib/live-activity-unregistered-card
branch
from
November 15, 2026 22:42
e34ad15 to
1af4890
Compare
mwolson
force-pushed
the
contrib/live-activity-unregistered-card
branch
from
November 20, 2026 22:49
1af4890 to
8793ffc
Compare
…gers out of date A card started when the user sends from the phone got one registration attempt, made before iOS had issued its push token, and no retry. The token listener sat on a wrapper nothing referenced, so it could be collected before the token arrived. The relay then had no token for the card and could neither update nor end it, and it stayed on the Lock Screen and watch as "Out of date" for hours. The listening wrapper is now kept, the first failed attempt schedules the usual retry, and a card the relay still has not accepted when the app goes to the background is removed.
mwolson
force-pushed
the
contrib/live-activity-unregistered-card
branch
from
November 23, 2026 19:21
8793ffc to
a6c84d0
Compare
This branch has not been deployed
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.
Problem
A Live Activity can end up on the phone and watch with no way to update or end it. A card started when the user sends a message from the phone gets one registration attempt, made right after the card is requested, when iOS has usually not issued its push token yet. That path schedules no retry. It relies on the token listener, which sits on a wrapper object nothing else references, and the native observer stops once that wrapper is collected. When the token never reaches the relay, the card stays at "Connecting", turns "Out of date" after ten minutes, and remains on the Lock Screen and watch for up to eight hours. Seen on 2026-11-13: a card showed one old thread as out of date for over an hour while the relay held no Live Activity token for the device and had two running threads to show.
Change
The wrapper that carries the token listener is kept for the life of the app process, so a late token still arrives. A card armed on send now schedules the same 15 second retry the foreground refresh uses when its first attempt does not register. A card this app started that the relay still has not accepted when the app goes to the background gets one more attempt, bounded to three seconds, and is then removed, so the Lock Screen shows no card instead of one nothing can correct. The removal is skipped when the app is already back in the foreground or another attempt registered the card in the meantime. The next foreground starts a fresh card from the relay's snapshot.
Scope and approval
Requested fork behavior, iOS only. Cards the relay has accepted, cards left from an earlier app process, and Android notifications are unchanged. A user who sends and leaves the app before iOS issues the token loses the card until the app is next opened.
Verification
Two tests in the registration module's test file: a card armed on send registers on the retry once its token exists and survives the app going to the background, and a card whose token never arrives is ended when the app goes to the background. Both fail with the production change reverted. Lint, both typechecks and the unused-code check pass. Not yet checked on a device.