What's the max duration for a live activity?

The docs are conflicting.

https://developer.apple.com/documentation/activitykit/starting-and-updating-live-activities-with-activitykit-push-notifications#End-the-Live-Activity-with-a-custom-dismissal-date says:

When you end a Live Activity, by default the Live Activity appears on the Lock Screen for up to four hours after it ends to allow people to glance at their phone to refer to the latest information.

However here it says:

https://developer.apple.com/documentation/activitykit/displaying-live-data-with-live-activities#Understand-constraints

A Live Activity can be active for up to eight hours unless its app or a person ends it before this limit. After the eight-hour limit, the system automatically ends the Live Activity, and immediately removes it from the Dynamic Island. However, the Live Activity remains on the Lock Screen until a person removes it or for up to four additional hours before the system removes it — whichever comes first. As a result, a Live Activity remains on the Lock Screen for a maximum of 12 hours.

So is it 4 hrs OR '8 for Dynamic Island vs 12 for Lock Screen'?

Answered by Engineer in 854815022

I am not certain there is a conflict:

First document says : (A) LA stays on Lock Screen for 4 hours after it ends

Second document says (B) A Live Activity can be active for up to eight hours

(B) is not related to (A) which specifies the time for visibility AFTER the Live Activity ends. Total time of visibility is (A) + (B)

(A) is 4 hours for Lock Screen and 0 hours for Dynamic Island.

So, a Live Activity can stay on the Lock Screen for 12 hours, even though after 8, it is not showing anything new.

The Dynamic Island is cleared as soon as the activity ends after a maximum of 8 hours.


Argun Tekant /  DTS Engineer / Core Technologies

Accepted Answer

I am not certain there is a conflict:

First document says : (A) LA stays on Lock Screen for 4 hours after it ends

Second document says (B) A Live Activity can be active for up to eight hours

(B) is not related to (A) which specifies the time for visibility AFTER the Live Activity ends. Total time of visibility is (A) + (B)

(A) is 4 hours for Lock Screen and 0 hours for Dynamic Island.

So, a Live Activity can stay on the Lock Screen for 12 hours, even though after 8, it is not showing anything new.

The Dynamic Island is cleared as soon as the activity ends after a maximum of 8 hours.


Argun Tekant /  DTS Engineer / Core Technologies

I see thanks. The word 'active' was confusing. I thought it meant just staying on the screen.

So 'active' in this context means 'able to receive updates'. Right?

What's the max duration for a live activity?
 
 
Q