Live Activity doesn't update as frequently as it should

I'm developing an app which will show the driver ETA and rendering the progress bar of the current ETA.

Intuitively the backend server sends the push notification every 3 seconds through firebase cloud message service to APNS so that the device can refresh the dynamic island smoothly.

But the live activity doesn't refresh as frequently as the backend service does.

It should refresh every 3 seconds but it turns out like refresh 30 ~ 60 seconds, sometimes it didn't refresh at all.

any body facing the same?

Answered by Engineer in 854796022

Sending an update every 3 seconds will run your app's Live Activity update budget very quickly.

As explained in Determine the update frequency section of Live Activities documentation, you can either send high priority updates which will draw down your budget, or low priority updates which will not draw down your budget but may not be delivered to the device in a manner that is suitable for a smooth update.

At once every 3 seconds requirement, you can't have both.


Argun Tekant /  DTS Engineer / Core Technologies

Accepted Answer

Sending an update every 3 seconds will run your app's Live Activity update budget very quickly.

As explained in Determine the update frequency section of Live Activities documentation, you can either send high priority updates which will draw down your budget, or low priority updates which will not draw down your budget but may not be delivered to the device in a manner that is suitable for a smooth update.

At once every 3 seconds requirement, you can't have both.


Argun Tekant /  DTS Engineer / Core Technologies

Wow thanks for the quick reply!

I'm going to try different priority settings to find what works well.

One more question https://www.reddit.com/r/iOSProgramming/comments/1bbd06v/cant_update_live_activity/?show=original

Found this post and after trying that I went through the same. WIFI works well but cellular doesn't work. Just want to know if I need to be worried about the network, or just focus on the priority

I can't comment on what the problem might be for a random non-descriptive issue.

Although, what you would need to worry about when sending low priority pushes in particular, is that they will be sent to the devices when conditions are appropriate. So, your push request may be held until the device is ready to accept low priority pushes. And in the meantime if you send another push to the same token, that will overwrite the previous unsent push, and you will be skipping updates.

Sending a low priority update every 3 seconds will likely cause a lot of the updates to be dropped. So, it might be better if you rethought your requirements here.


Argun Tekant /  DTS Engineer / Core Technologies

Live Activity doesn't update as frequently as it should
 
 
Q