We have a widget bundle with multiple widgets.
I'm adding a widget that is interactive (iOS 17 and higher).
Our widget code is in a static library that gets linked into the widget extension target in our main app Xcode project.
I have SwiftUI buttons constructed with the intent constructor in our UI
See https://developer.apple.com/documentation/swiftui/button/init(intent:label:)
When I press the button the timeline refreshes (conforming to TimelineProvider) but the perform method doesn't seem to be called.
I've seen multiple pieces of advice and none of them seem to work.
I've tried on a physical device and a simulator.
I've tried adding an AppIntentsPackage.
I've tried including the AppIntent code in the app and the widget.
I've tried setting the openAppWhenRun to true and false and not setting it at all.
I've tried simplifying the intent to just printing out a line to the console and returning a result.
At this point I have no idea how to debug this and I don't know what else to try.
I appreciate any helpful advice at this point.
4
0
371