how do you get a push-to-start token?

Asked on 04/29/2025

1 search

To obtain a push-to-start token for updating a live activity, the app requests a push token from ActivityKit when a live activity is started. ActivityKit receives this push token from the Apple Push Notification Service (APNs) and provides it to the app. This push token is unique for each live activity requested by the app on the device. The app then shares this unique push token with its app server. When there is an update, the server sends a push notification to APNs with the token and the payload, and APNs delivers the payload to the respective device.

For more details, you can refer to the session Broadcast updates to your Live Activities.