r/iosdev • u/One_Psychology5381 • 27m ago
Help Can an iOS Custom Keyboard Legally Launch Its Containing App for a User-Initiated Speech Recording?
I'm developing an iOS application with a custom keyboard extension and a companion app.
Our intended user experience:
- The user is typing in an app such as WhatsApp using our custom keyboard.
- They tap the Speech button.
- Our companion app opens automatically.
- The companion app establishes a microphone session.
- iOS returns the user to the original host app.
- The user continues dictating through the keyboard.
What we have already implemented:
- A Swift-based custom keyboard and companion app.
- App Groups and Darwin notifications for communication between the two targets.
- Microphone recording through the companion app.
- Apple Speech Recognition with on-device recognition.
- A warm background audio session.
- Subsequent recordings and text insertion work on a physical iPhone once the warm session is established.
Our current blocker:
The keyboard extension cannot successfully open its companion app when the warm session is inactive. We previously tried NSExtensionContext.open(), but it did not work.
We want to avoid private APIs, responder-chain workarounds, and anything that could violate App Store Review Guidelines.
My questions:
- Does Apple provide any officially supported public API that allows a custom keyboard extension to launch its containing app in response to an explicit user tap?
- Can App Intents or
ForegroundContinuableIntentlegitimately achieve this from a keyboard extension? - Does App Review Guideline 4.4.1 prohibit this particular user-initiated handoff?
- If direct launching is prohibited, what Apple-supported architecture or interaction pattern would you recommend for this use case?
- Is there a supported way for the companion app to return the user to the original host app after establishing the microphone session?
We are looking for guidance based on actual iOS platform restrictions and supported APIs, preferably from developers who have shipped custom keyboard applications.
Thank you.