如何解决Android Google Assistant 只用应用名称打开我的应用
我看到了 Google 助理代码实验室并通过 Google 助理实现了开放式应用。我正在使用 actions.intent.OPEN_APP_FEATURE
意图,它没有按我的预期工作。例如,当我说“Hey google open myAppName app/application/work/run”时它会起作用。但我希望它在我说“嘿谷歌 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>
解决方法
应用操作 BII 无法识别超出其预定义语言模式的请求。您可以从 open app feature documentation 中看到它识别模式,例如:
- 打开 YouTube 历史记录。
- 打开 ExampleApp ExampleFeature。
- 向我展示 ExampleApp 上的 ExampleFeature。
因此,您尝试执行的操作可能不受开放应用功能的支持。
如果要使用 BII 不支持的语言模式,则需要考虑使用 custom intent。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。