I found a better solution for interaction Live Activity.
You can create a struct impletion LiveActivityIntent then add it to widget target and app target.
Create two files, one add to widget target, other one add to app target, each extension your Intent and write one same function. Widget target function can empty, app target function is real code. In perform call your function in extensions file.
Above steps make sure compile success and when interaction intent, System will execute your real code in App Process.
Topic:
App & System Services
SubTopic:
General
Tags: