在Google上执行的操作

问题描述 投票:0回答:1

[我试图完成的工作是让我的应用可以通过Google助手上的语音命令进行访问打开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>
java android xml kotlin actions-on-google
1个回答
0
投票

intentName标签的action似乎不是one of the supported built-in Intents

当前,您只能使用预定义的Intent之一来触发您的应用。如果您的应用不在当前为其定义了“意图”的类别之一中,则您无法实施“应用操作”。

© www.soinside.com 2019 - 2024. All rights reserved.