Live Activity ending immediately after being created

I'm seeing a Live Activity that's ended almost immediately after I'm creating it. I'm not ending the activity in my code, so something is happening at the system level. iOS version is 18.3.1.

Looking at the logs for liveactivitiesd, I see that it was successfully created:

default	12:57:34.837266-0800	liveactivitiesd	Created activity: 22713DF6-E853-4B34-85FA-CD08D8FCA91B
default	12:57:34.837639-0800	liveactivitiesd	Starting activity: identifier: 22713DF6-E853-4B34-85FA-CD08D8FCA91B; createdDate: 2025-02-17 20:57:34 +0000; state: active; deviceIdentifier: local; resolvedContentSources: [ActivityKit.ActivityContentSource.process(target: <snip>), ActivityKit.ActivityContentSource.sync]; lastUpdateDate: 2025-02-17 20:57:34 +0000; endingOptions: nil
default	12:57:34.858701-0800	liveactivitiesd	Activity did start 22713DF6-E853-4B34-85FA-CD08D8FCA91B

But then moments later, it's immediately ended:

default	12:57:34.933963-0800	liveactivitiesd	Ending activity 22713DF6-E853-4B34-85FA-CD08D8FCA91B for XPC participant content source <private>
default	12:57:34.933983-0800	liveactivitiesd	Stopping activity: 22713DF6-E853-4B34-85FA-CD08D8FCA91B
default	12:57:34.934019-0800	liveactivitiesd	Activity: identifier: 22713DF6-E853-4B34-85FA-CD08D8FCA91B; createdDate: 2025-02-17 20:57:34 +0000; state: active; deviceIdentifier: local; resolvedContentSources: [ActivityKit.ActivityContentSource.process(target: <snip>), ActivityKit.ActivityContentSource.sync]; lastUpdateDate: 2025-02-17 20:57:34 +0000; endingOptions: nil should be discarded now
default	12:57:34.934442-0800	liveactivitiesd	Activity discarded: 22713DF6-E853-4B34-85FA-CD08D8FCA91B

Again, I'm not ending this activity in my code. I'll occasionally see this happen in my app, and the only solution I've found is to restart my device. Afterwards, everything seems fine.

Is this a bug?

Still seeing this issue occasionally occurring.

I am also experiencing this issue. I wish I add more information to provide, but no.

Okay! I have nailed the issue on my side, and you can easily check if that's the same on yours.

Do you see your Live Activity blinking before the system kills it?

If so, you have an infinite refresh loop in your SwiftUI view. Meaning your Live Activity never settles on how it should be rendered.

After a certain number of rendering attempts, the system will kill your Live Activity.

The solution is to simplify the views inside your Live Activity. You might have a view that is pretty complex to draw, for which the layout never truly settles. If you are unsure, try to comment out each component one by one until you pinpoint the faulty one.

Hope that helps. I was able to solve my issue.

@Minoo555 Glad to hear you have found the issue and your Live Activity is working again. Looking forward to see it in the store.

Thanks

Albert  WWDR

Live Activity ending immediately after being created
 
 
Q