Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

push-to-start notification does not reliably result in a new push-to-update token on the pushTokenUpdates async sequence

I've noticed that the when starting live activities via a remote push-to-start notification, the live activity widget consistently succeeds in displaying on the lock screen. However push-to-update token is not always received by the task observing the pushTokenUpdates async-sequence.

Task {
    print("listening for pushTokenUpdates")

    for await pushToken in activity.pushTokenUpdates {
    let token = pushToken.map {String(format: "%02x", $0)}.joined()
    print("Push token: \(token)")
  }
}

The log will print "listening for pushTokenUpdates" however occasionally the "Push token: ___" line will not be present even when the widget has displayed on screen. This happens even if the "allow" button has been selected on live activities for that app. The inconsistent behavior leads me to believe there is an issue at the ActivityKit level. Would appreciate any feedback in debugging this!

push-to-start notification does not reliably result in a new push-to-update token on the pushTokenUpdates async sequence
 
 
Q