Skip to content

[Bug]: iOS Dynamic Island stays out of date until Notification Center is pulled down #43037

Backlog

Description

@abhaymettu

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Not sure

The cause is in infra/relay, which isn't in the list.

Steps to reproduce

  1. Turn on Live Activities in the iOS app and use the phone as usual, on the Home Screen or in another app, so the Dynamic Island shows the T3 card.
  2. Start a turn on a linked environment. Let it finish, then start another one.
  3. Watch the Dynamic Island as threads go from working to done and back.
  4. Pull down Notification Center once and let it go.

Expected behavior

The island follows the agents and shows working, Done, Input, Approval or Failed as each one happens.

Actual behavior

The island keeps the old state. It catches up only after Notification Center (or the Lock Screen) has been shown once. Changes that come with an alert, like a thread asking for input, are fine.

I think the cause is the APNs priority. buildLiveActivityRequest in infra/relay/src/agentActivity/ApnsClient.ts sends every update without an alert at priority 5:

priority: input.event === "update" && !input.alert ? "5" : "10",

shouldUpdateLiveActivity in ApnsDeliveries.ts already sends phase and active-count changes right away, but they still go at 5. Apple's ActivityKit push guide says 10 delivers the update immediately and 5 is low priority that doesn't count toward the budget. WWDC23 session 10185 says low-priority updates are delivered opportunistically. Two other projects saw the same lag at 5 and an instant refresh at 10:

The compact and minimal island views only draw the hero row's phase glyph and the Done, Input, Approval and Failed labels. So everything the island shows goes out at the low priority unless it also rings.

A possible fix: send an update at 10, with no alert dictionary, when what the island draws changes. That means work starting, needs input, needs approval, failed, or all done. Status text and starting to running stay at 5. Starting and running are most of the traffic: on my server, 568 of 765 published phase changes in about 13 hours were one of those two. The app already sets frequentUpdates: true. I'm opening a PR with this change and tests.

Impact

Major degradation or frequent failure

Version or commit

Server 0.1.12-nightly.20261123.5151 on Linux, publishing to relay.t3.codes. iOS app build 248. Code read at main dc5ae5c.

Environment

iPhone, app user agent T3Code/248 CFNetwork/3896.200.61 Darwin/27.2.0. Two linked environments (macOS and a Linux server), both with agent activity publishing on.

Logs or stack traces

From the Linux server's log, nothing fails. The relay queues each update:

agent activity publish completed
  ok: true,
  deliveries: { total: 1, queued: 1, successful: 0, failed: 0, kinds: [ 'live_activity_update' ], failedReasons: [] }

Over about 13 hours there were 750 publishes and 0 failed deliveries.

Workaround

Pull down Notification Center, or lock the phone and open it again.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions