【发布时间】:2021-05-08 09:03:33
【问题描述】:
我看到了 Google Assistant 代码实验室,并通过 Google Assistant 实现了开放应用。我正在使用actions.intent.OPEN_APP_FEATURE 意图,它没有达到我的预期。例如,当我说“Hey google open myAppName app/application/work/run”时它可以工作。但我希望它在我说“嘿 google appName”时打开我的应用程序。谁能帮我解决它?提前致谢!
<?xml version ="1.0" encoding ="utf-8"?>
<actions>
<action intentName="actions.intent.OPEN_APP_FEATURE">
<fulfillment urlTemplate="https://app.page.link/open{?featureName}">
<parameter-mapping
intentParameter="feature"
urlParameter="featureName" />
</fulfillment>
<parameter name="feature">
<entity-set-reference entitySetId="FeaturesSetId"/>
</parameter>
</action>
<entity-set entitySetId="FeaturesSetId">
<entity name="App" identifier="app"/>
<entity name="Application" identifier="application"/>
<entity name="Work" identifier="work"/>
<entity name="Run" identifier="run"/>
</entity-set>
</actions>
【问题讨论】:
-
我尝试在我的设备上的 Android 12 上说“打开 myAppName”或只说“myAppName”,它适用于每个应用程序。
标签: android android-deep-link google-assistant app-actions