[英]app actions: work with test tool but not with voice
I am exploring the app actions.我正在探索应用程序操作。 I'd like to build a demo with three pages, and the user could navigate to different pages by giving the right instruction to google assistant.
我想构建一个包含三个页面的演示,用户可以通过向谷歌助手提供正确的指令导航到不同的页面。 here is my actions.xml and AndroidManifest.xml:
这是我的操作。xml 和 AndroidManifest.xml:
//actions.xml
<?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
fulfillmentMode="actions.fulfillment.DEEPLINK"
urlTemplate="http://example.com/open{?title}">
<parameter-mapping
intentParameter="feature"
urlParameter="title"
entityMatchRequired="true"/>
</fulfillment>
</action>
<entity-set entitySetId="FeatureEntitySet">
<entity name="game" identifier="game" />
<entity name="navigation" identifier="navigation" />
<entity name="ebook" identifier="ebook" />
</entity-set>
</actions>
//AndroidManifest.xml
<activity android:name="com.appactiont.demo.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.gms.actions.SEARCH_ACTION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:autoVerify="true" tools:targetApi="m">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="example.com"
android:scheme="http" />
</intent-filter>
</activity>
It works with app actions test tool, but google assistant cannot correctly interpret "open demo game" or "open demo with feature game" (even I type it).它适用于应用程序操作测试工具,但谷歌助手无法正确解释“打开演示游戏”或“使用功能游戏打开演示”(即使我输入它)。 It just opens a search result.
它只是打开一个搜索结果。 Not sure if I missed something in my code.
不确定我是否遗漏了代码中的某些内容。 Appreciated if anyone can help!
如果有人可以提供帮助,我们将不胜感激!
This should be fixed by now.现在应该解决这个问题。 Please try it and let me know if it's working or not.
请尝试一下,让我知道它是否有效。 Thanks!
谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.