You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am developing a live activity that needs to get a .json file which will be used to render a lottie animation. This is not an image and therefore I can't use LiveActivityImage.
My proposal would be to create LiveActivityFileAsset.
This can be resolved to the actual asset in kotlin and swift using
// registrar is of type "FlutterPluginRegistrar"letkey= registrar?.lookupKey(forAsset:"Images/topImage.png")lettopPath=Bundle.main.path(forResource: key, ofType:nil)!
I didn't do any testing. Just to clarify: I don't want to send the whole data over to my live activity. I want to access a filepath that is stored in my main app.
The 4KB transfer limit shouldn't be a deal here if i am able to configure that.
I am developing a live activity that needs to get a .json file which will be used to render a lottie animation. This is not an image and therefore I can't use
LiveActivityImage
.My proposal would be to create
LiveActivityFileAsset
.This can be resolved to the actual asset in kotlin and swift using
Same should work for android.
You can then grab the asset using
The text was updated successfully, but these errors were encountered: