Since iOS 18 is possible to create ControlWidgets.
I created one control, and I would like that if the user taps on it, the main App runs an action, even if the application is not in foreground, but I couldn’t find a working solution.
I tried to do this by using an Intent and make sure that the method of the AppDelegate “application(_ application: UIApplication, handlerFor intent: INIntent) -> Any?” is called, but it’s never called.
Is it supposed to work in this way ?
1