Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Live Activities / Dynamic island can't display images from Asset or Data

I can't achieve to display images from asset in live activities & dynamic island widgets.

It's work very well with icon but not with image from asset or from UIImage (via Data).

This works:

Image(systemName: "timer")

This NOT work:

Image("pizza")

My App asset looks like:

Xcode Asset

I copied asset in the extension:

Build phase

The live activity notification is not created when I add the Image from asset. Any help would be appreciated!

What I tried & not working:

  • Move asset from main app to extension
  • Load image from Data
  • Specify fixed sized of the image
like image 525
iStornZ Avatar asked Sep 05 '25 03:09

iStornZ


1 Answers

I found the issue, Image need to be in a small resolution to be displayed in your live activity/dynamic island.

Data must be lower or equal than 4kb, here is the official Apple doc:

The updated dynamic data for both ActivityKit updates and ActivityKit push notifications can’t exceed 4KB in size.

like image 129
iStornZ Avatar answered Sep 07 '25 21:09

iStornZ