Live Activity not showing when started via push notification,but update and end can work

i got some problem for the LiveAcitvity when i start it with notification. The LiveActivity can not show,but it can work when i update or end a LiveActitvity; And so,i think my configeration is right like the code;

thanks in advance

Answered by Engineer in 822258022

When testing you will want to enable frequent updates otherwise you run into situations like this.

To debug:

1)Plug the devices that aren’t showing the activities in to your computer and monitor with Console.app 2) Look for logs relating to your processes (target names), apd (the apns daemon) and the topic you are using for push. 3) filter by Budget and if you see : priority(0), budget(0) or running-not-visible, the system has decided to not show your activity.

Some reasons why this may occur:

  1. low battery mode
  2. bad data in the push(es)
  3. too many pushes in a short period of time

The only way to remedy this (because you cannot manually do this) is to wait for the system to add budget which can take up to 24 hours, and as you’ve seen, resetting the device doesn’t work.

There is also a chance the tokens you are using for testing aren’t matching the apns environment they should be used with. As example, tokens generated from test flight builds are actually production tokens and not sandbox as some would expect.

If there are specific pushes with timestamps and topics you can provide, I should be able to get more information, but Console.app will usually shed enough light to remedy any issues.

Hopefully this helps.

Rico


WWDR | DTS | Software Engineer

`{"aps":{"timestamp":1737362214,"event":"start","content-state":{"amount":77},"attributes-type":"CallWatchLiveActivityAttributes","attributes":{"amount":77},"alert":{"title":{"loc-key":"%@ is on an adventure!","loc-args":["Power Panda"]},"body":{"loc-key":"%@ found a sword!","loc-args":["Power Panda"]},"sound":"chime.aiff"}}}

When testing you will want to enable frequent updates otherwise you run into situations like this.

To debug:

1)Plug the devices that aren’t showing the activities in to your computer and monitor with Console.app 2) Look for logs relating to your processes (target names), apd (the apns daemon) and the topic you are using for push. 3) filter by Budget and if you see : priority(0), budget(0) or running-not-visible, the system has decided to not show your activity.

Some reasons why this may occur:

  1. low battery mode
  2. bad data in the push(es)
  3. too many pushes in a short period of time

The only way to remedy this (because you cannot manually do this) is to wait for the system to add budget which can take up to 24 hours, and as you’ve seen, resetting the device doesn’t work.

There is also a chance the tokens you are using for testing aren’t matching the apns environment they should be used with. As example, tokens generated from test flight builds are actually production tokens and not sandbox as some would expect.

If there are specific pushes with timestamps and topics you can provide, I should be able to get more information, but Console.app will usually shed enough light to remedy any issues.

Hopefully this helps.

Rico


WWDR | DTS | Software Engineer

Live Activity not showing when started via push notification,but update and end can work
 
 
Q