I want to be able to launch some features of my Android app ("Start", "Stop"), through voice commands from Google Assistant.
I have integrated actions.intent.OPEN_APP_FEATURE
into my app and tested it successfully through the App Actions Test Tool in Android Studio.
My actions.xml
:
<?xml version="1.0" encoding="utf-8"?>
<actions>
<action intentName="actions.intent.OPEN_APP_FEATURE">
<fulfillment urlTemplate="http://www.my-app.com/{?featureName}">
<parameter-mapping
intentParameter="feature"
urlParameter="featureName" />
</fulfillment>
<parameter name="feature">
<entity-set-reference entitySetId="FeatureEntitySet" />
</parameter>
</action>
<entity-set entitySetId="FeatureEntitySet">
<entity
name="@string/start_capture"
identifier="START" />
<entity
name="@string/stop_capture"
identifier="STOP" />
</entity-set>
</actions>
When asking Google Assistant something like "Open start from MyApp" I was expecting the same behavior as when testing through the App Actions Test Tool (open the feature of the app), but Google Assistant provides generic web results instead.
It turns out, that there is a bug preventing from triggering an Open App Feature from Google Assistant.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With