Recently I've started to write my own assistant, but encountered with a problem. I need to listen Push to Talk (physical) button event even when my app is on background. I know button listeners are not available within Service's, but I wonder how come Google Assistant can be triggered when there is another app on foreground ? Does anyone know what is different on that ?
Thanks