如何从助手实现openappfeature?

时间:2019-12-12 14:41:05

标签: android action actions-on-google google-assistant-sdk assistant

网址mysample://,这里的mysample代表架构
实体标识符=“ screen1”代表主机

在清单意图过滤器中

android:host =“ screen1”  android:scheme =“ mysample”

<?xml version="1.0" encoding="utf-8"?>
<actions>

    <action intentName="actions.intent.OPEN_APP_FEATURE">

        <parameter name="feature">
            <entity-set-reference entitySetId="FeatureEntitySet"/>
        </parameter>

        <fulfillment urlTemplate="mysample://{?appFeature}">
            <parameter-mapping intentParameter="feature" urlParameter="appFeature" />
        </fulfillment>
    </action>

    <entity-set entitySetId="FeatureEntitySet">
        <entity identifier="screen1" name="Screen 1" />
           </entity-set>
</actions>

用于测试的动作测试工具   显示了来自助理的信息

  

“未安装应用”

0 个答案:

没有答案