How does Google’s custom iOS keyboard, Gboard, programmatically dismiss the frontmost app?
Your guess is correct — Gboard is using private API to do it. … though not through exploring view hierarchy or event injection. When the voice-to-text action is done, we can check the syslog from Xcode or Console that it calls the -[AVAudioSession setActive:withOptions:error:] method. So I’ve reverse-engineered the Gboard app and look for the … Read more