我要完成的工作是让我的应用可以通过Google Assistant上的语音命令进行访问
打开App Actions测试工具时出现此错误。
error
actions.xml
<?xml version="1.0" encoding="utf-8"?>
<actions>
<action intentName="com.example.appname.SHOW_SWITCH_BOARD">
<fulfillment urlTemplate="https://appname-test-6bc52.firebaseapp.com/{?switchboard}">
<parameter-mapping
intentParameter="switchboard.name"
urlParameter="switchboard" />
</fulfillment>
</action>
</actions>
最佳答案
您的action标签的intentName
似乎不是one of the supported built-in Intents。
当前,您只能使用预定义的Intent之一来触发您的应用程序。如果您的应用不在当前为其定义了“意图”的类别之一中,则您将无法实施“应用操作”。
这是I / O 2019讨论应用程序操作的其他视频:https://youtu.be/vQALSeGy9aY
关于java - 在Google上实现操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60225152/