问题
I am trying to implement app actions and slice (for fulfillment) in my android app. I am testing the feature with "App Actions Test Tool" and the slice loads up immediate when I hit "Run" in the tool but the Slice does not work with the Voice command. Is the feature available to launch slice using voice command. I already have a draft posted on play store and using the same account for Android studio and the assistant.
Expected that the slice would launch with the voice command of the intent
回答1:
Yes, it should work for most App Actions, however, you will need to test with the correct phrase. Some App Actions may also not work correctly via voice at this time, if so you can file a bug here.
To test this out:
Review the test phrases under each built-in intent in the documentation here.
Configure or check your invocation name in the Studio Test Tool plugin:
Invoke the test phrase with your invocation name by speaking or by typing (typing can be easier for testing initially).
I recommend you try first with the Fit Actions sample app along with the START and STOP exercise App Actions as these should work reliably.
回答2:
I just spent the weekend trying to get the sample to work, only to see this...
From: https://developers.google.com/actions/appactions/overview
Check the big grey box at the top of the page: "You can build and test App Actions, but user triggering from the Assistant is not available yet."
:(
来源:https://stackoverflow.com/questions/56139330/android-app-actions-does-not-work-with-voice-command