iOS18, interactive widget not respond (AppIntent not working)

here is my case:
i add the AppIntent to both your app and widget extension targets. the intent will run my app process when app is running.
it works perfectly on iOS 17. but iOS 18, my app process never called. i download app's demo, https://developer.apple.com/documentation/widgetkit/emoji-rangers-supporting-live-activities-interactivity-and-animations
it looks like the same issue. it runs well because even it runs in the widget extension target, it still can present expected UI. but in real case, we need to run the app process to do some work. by debugging, i found the app process never called(set breakpoint).
i add openAppWhenRun, it works well on iOS 18. but it will open the app when the widget is running. it is not what i want.

I see exactly the same issue, still present in beta 3.

Still present in beta 6.

Found the solution (at least for live activities!)

Make sure to conform your AppIntent to LiveActivityIntent and perform() will be called.

Do you have a solution to this problem?

iOS18, interactive widget not respond (AppIntent not working)
 
 
Q