这是我的actions.xml文件,我不知道这里发生了什么,我阅读了所有的文档并实现了所有的东西,但是google说,“以下内置意图没有按预期触发: 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>
暂无答案!
目前还没有任何答案,快来回答吧!