这是我的 actions.xml 文件,我不知道这里发生了什么我阅读了所有文档并实现了所有东西,但谷歌说,“以下内置意图未按预期触发:
actions.intent.OPEN_APP_FEATURE
”有关如何创建actions.xml 文件,请参阅我们的开发人员文档
我不知道我的actions.xml
文件发生了什么。
<?xml version="1.0" encoding="utf-8"?><actions>
<action intentName="actions.intent.OPEN_APP_FEATURE">
<!-- Each parameter can reference an entity set using a custom ID. -->
<parameter name="feature">
<entity-set-reference entitySetId="FeatureEntitySet" />
</parameter>
<fulfillment urlTemplate="{@url}"></fulfillment>
</action>
<entity-set entitySetId="FeatureEntitySet">
<entity
name="glucose"
alternateName="@array/alternatives"
identifier="featureone"
url="AppRx://glucose/one" />
<entity
name="blood_pressure"
alternateName="@array/alternatives2"
identifier="featuretwo"
url="AppRx://glucose/two" />
</entity-set>
<action intentName="actions.intent.GET_HEALTH_OBSERVATION">
<fulfillment
fulfillmentMode="actions.fulfillment.SLICE"
urlTemplate="content://glucose/glucose{?name}">
<!-- name = "ID_ONE" or "ID_TWO" -->
<!-- If no inventory match, name is a text value, such as "Body Temperature" -->
<!-- (Optional) Use entityMatchRequired="true" to require inventory match for fulfillment -->
<parameter-mapping
intentParameter="healthObservation.measuredProperty.name"
urlParameter="name" />
</fulfillment>
<!-- Define parameters with inventories here -->
<parameter name="healthObservation.measuredProperty.name">
<entity-set-reference entitySetId="FeatureEntitySet2" />
</parameter>
</action>
<entity-set entitySetId="FeatureEntitySet2">
<entity
name="lastglucose"
alternateName="@array/alternatives3"
identifier="featureglucose"
url="content://glucose/glucose" />
</entity-set>
</actions>