I want my app to basically know when the user spoke to the device and switched to my app (or launched it). Something like:
“Hey Siri, ”
Or
“OK Google, ”
That’s it. From there, my app would automatically emit a prompting sound and enable the microphone for eg more complex commands, which I plan to use OpenEars or other onboard AI for — no need to send to server.
But how do I know on iOS and Android that the app was put into the foreground by Siri or Google Assistant?