Posts

Post not yet marked as solved
2 Replies
182 Views
Hello all, I am trying to start Live Activity from remote push notification with the new ActivityKit api. The documentation for starting live activity from a push notification says: When the system receives the ActivityKit push notification on a device, it starts a new Live Activity, wakes up your app, and grants it background run time to allow you to download assets that the Live Activity needs. While the system starts the new Live Activity and wakes up your app, you receive the push token you use for updates. To update and end the Live Activity, use this update push token as if you obtained it by starting a Live Activity from within your app. Is there any information on how to get access to the background runtime and the push token, when the app is in background when the Live Activity is started? I can get the pushToStartTokenUpdates if the app is already running and push notification arrives (and starts the Live Activity), but not in the background, which makes getting updates not possible unless user launches the app. Thanks!
Posted
by lena.l.
Last updated
.