问题描述
我无法将Google Assistant与正在使用的应用程序集成。该应用程序通过群组和私人资产进行VOIP呼叫,我们希望允许客户说出Call {FUBU} Group General
或Call {FUBU} Private Michael
之类的名称,其中可以省略或不省略应用程序名称。
问题是,深层链接正在运行,可以通过终端进行测试,App Actions Test Tool
也可以正常工作,但是当尝试使用Assistant时,我最终遇到的问题是我想与谁通话(通过电话联系人),但没有我要处理哪个应用程序或正在打开的应用程序的问题。
问题已在Google IssueTracker
上打开,但处于同一状态已超过一周。
以下是有关“操作”的相关更改。在Manifest
的{{1}}活动中,我添加了以下内容
Launcher
我已经使用<intent-filter android:label=“FUBU CALL">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.broWSABLE" />
<!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
<data android:scheme="https"
android:host=“fubu.call.safemobile.com"
android:pathPrefix="/start" />
<!-- note that the leading "/" is required for pathPrefix-->
</intent-filter>
测试过了,效果很好。
这里是db shell am start -a android.intent.action.VIEW -d "https://fubu.call.safemobile.com/start"
actions.xml
(也供参考),这里是<?xml version="1.0" encoding="utf-8"?>
<!-- This is a sample actions.xml -->
<actions>
<action intentName="actions.intent.CREATE_CALL">
<fulfillment urlTemplate="https://fubu.call.safemobile.com/start{?callFormat,name}">
<parameter-mapping urlParameter="callFormat" intentParameter="call.callFormat" required="true" />
<!-- Eg. name = "John Doe" -->
<parameter-mapping urlParameter="name" intentParameter="call.participant.name" />
</fulfillment>
<!-- Provide a fallback fulfillment with no required parameters. For example,to your app search or router deeplink -->
<fulfillment urlTemplate="https://fubu.call.safemobile.com/start"/>
<!-- Define parameters with inventories here -->
<parameter name="call.callFormat">
<entity-set-reference entitySetId="callFormatEntitySet"/>
</parameter>
<entity-set entitySetId="callFormatEntitySet">
<entity
name="@string/group_call_entity"
identifier="group" />
<entity
name="@string/private_call_entity"
identifier="private" />
</entity-set>
</action>
</actions>
中使用的JSON
App Actions Test Tool
我怀疑我遇到配置问题,但是无法检测到它。
任何帮助将不胜感激。预先感谢。
解决方法
我们正在调查中。感谢您举报。请通过该跟踪器https://issuetracker.google.com/issues/170720919关注有关此错误的更多详细信息。