Replies: 1 comment 4 replies
|
The whole class is built on an inverted assumption. Every public method does: if (!CN.isEdt()) { CN.callSerially(() -> ...); return; }with comments like "Execute Live Activity creation directly on EDT to prevent thread lock". That's backwards. The documented contract ( By forcing it onto the EDT you moved all of that onto the one thread that must never block:
In the simulator all of this is Java2D plus a local filesystem write microseconds. On an iPhone 13 it's a real GPU readback, a real container write and a real XPC hop. Same code, wildly different cost.
Fix: drop all the cachedDefaultIcon = EncodedImage.create("/ic_stat_notify.png");
Real bugs independent of the freeze
No, |
Uh oh!
There was an error while loading. Please reload this page.
I implemented in my app your new feaure Surfaces, but in my app is freezing when I launched from another thread.
you can check my classes implemented here
SvcEventSurfaceManager.txt
SurfaceData.txt
if you call startEventTracking method you can launch the LiveActivity but my app freezes in IOS 26 iphone 13. this behaivor work perfectly in simulator.
I have checked your poor documentation https://www.codenameone.com/blog/widgets-live-activities-dynamic-island/ and your Sample . my Question is . it's necessary to implements BackgroundFetch in my main class to use LiveActivity?
the LiveActivity is Lanched perfectly in the lockscreen but may app is freezes.
All reactions