Along with the first beta release of iOS 16.4, Apple has published a new beta protocol for the App Intents APIs that let developers foreground their process if user interaction is required.
Michael Gorbach, engineering manager on the App Intents, Shortcuts and Proactive Intelligence team at Apple, posted the following about the release on Mastodon:
Here’s the description of the protocol from Apple’s website:
The ForegroundContinuableIntent protocol represents intents which begin their work with the app in the background but may request to continue in the foreground.
This protocol will be in beta for the iOS 16.4 developer cycle, so app developers can begin building with this now – everyday users won’t see the effects of this in their apps until iOS 16.4 releases in full after Apple’s testing cycle.
Learn more about the ForegroundContinuableIntent protocol in the Apple Developer Documentation.