Search code examples
androidfluttergoogle-assistantapp-actions

Google assistant is not detecting my application


I'm trying to implement google assistant app actions in the flutter.

https://codelabs.developers.google.com/codelabs/appactions-2#0 I'm referring to this link and building the application.

I have uploaded the signed bundle to the play console internal testing and also created the shortcuts.xml and linked it to AndroidManifest.xml too.

The google assistant app actions tool in the android studio is creating the app actions preview and also when I run the app action from the app action tool in the android studio the app is performing the action I have specified but when I give a voice command like "okay google, show Tasks in the Test app" the google assistant is not opening my test app and performing the action I have specified. Google Assistant is waking up when I say okay, google.


Solution

  • When you create the preview in the test tool, make sure you specify the App name. Although it is listed as "optional", I find that specifying a name that is unlikely to match any other application makes sure that it will match while testing. (I usually use a name such as "bogus" or "fake".)

    Picture of App Actions Test Tool