Live Activity update push token

For devices running iOS 18 and iPadOS 18 or later, you can add input-push-token: 1 to your payload to start a Live Activity and receive a new push token. After you receive a new push token, you can use it to send updates to a Live Activity.

I read from https://developer.apple.com/documentation/ActivityKit/starting-and-updating-live-activities-with-activitykit-push-notifications#Start-new-Live-Activities-with-ActivityKit-push-notifications that I can start a live activity from CUSTOM SERVER by the start token I get from MyApp.Does that paragraph means my CUSTOM SERVER can receive a new token from aps? If not, how can update the live activity started by Push-Notification when MyApp doesn't alive? And what "input-push-token: 1 " can do, when I put it in the payloads?

Your Live Activity's process will be woken when the new token is delivered. At that point you can send it to your server.

Rico


WWDR | DTS | Software Engineer

Yes, you mean my app can be woken when Activity<Attributes>.pushToStartTokenUpdatesBut delivered the new token. But I want to know how can I get the activity.pushTokenUpdates when my server start an live activity via push notification, because without the activity.pushTokenUpdates, my server can't deliver update information after start the live activity.

for now, I check the activities when my app become foreground, but I can't be notified when my app is in foreground and server start an live activity by push notification.

I've tried "content-available": 1 in LA's payload aps,but I also can't be notified in the didReceiveRemoteNotification in appdelegate.

LOOKING FOR YOUR ANSWER

Live Activity update push token
 
 
Q