I have solved this problem with a correct answer
Post
Replies
Boosts
Views
Activity
Yes, this code run on my main capture app, when the app 'didFinishLaunchingWithOptions', i will run this code
It didn't work, have you tried this ?
no, my case is ios18 ControlWidgetButton
struct TestControlCenterControl: ControlWidget {
var body: some ControlWidgetConfiguration {
StaticControlConfiguration(
kind: "com.intsig.TestControlWidget.TestControlCenter",
content: {
ControlWidgetButton(action: OpenMainAppIntent()) {
Image(systemName: "heart")
}
}
)
}
}
I am using the following code in iOS18 beta version, but i don‘t know how to add widgetURL
I have the same issue, it can open app, but appdelegate won't perform 'openURL'
Maybe we need to use symbol images, not a image, you can try it