This is the actions.xml that I have:
<actions>
<action intentName="actions.intent.GET_ACCOUNT">
<parameter name="account.name">
<entity-set-reference entitySetId="AccountEntitySet" />
</parameter>
<fulfillment urlTemplate="https://www.xelion.com/account{?accountType}">
<parameter-mapping
intentParameter="account.name"
urlParameter="accountType" />
</fulfillment>
</action>
<action intentName="actions.intent.OPEN_APP_FEATURE">
<parameter name="feature">
<entity-set-reference entitySetId="FeatureEntitySet" />
</parameter>
<fulfillment urlTemplate="https://www.xelion.com/open{?featureName}">
<parameter-mapping
entityMatchRequired="true"
intentParameter="feature"
urlParameter="featureName" />
</fulfillment>
</action>
<entity-set entitySetId="EntitySet">
<!-- For each entity you can specify the name, alternate names and the identifier -->
<!-- The identifier is the value that will be added to the action uri. -->
<!-- For our sample we map the supported entities with the class FitActivity.Type -->
<entity
name="start"
identifier="START" />
<entity
name="stop"
identifier="STOP" />
</entity-set>
<entity-set entitySetId="FeatureEntitySet">
<entity
name="call"
alternateName="@array/callSynopsis"
identifier="CALL" />
<entity
name="history"
identifier="HISTORY" />
</entity-set>
<entity-set entitySetId="AccountEntitySet">
<entity
name="utility"
identifier="UTILITY" />
<entity
name="sales"
identifier="SALES" />
</entity-set>
</actions>
Now if I try: "Get Dialler Xelion Account" this will trigger the GET_ACCOUNT.
If I try "Open HISTORY on Dialler Xelion" It also recognises the feature and opens the app.
But it does not work for: "Open Call on Dialler Xelion" As you can see I have it in the FeatureEntitySet, so what might be the issue?
Also in the App Actions Test Tool v3.0.0 if I select OPEN_APP_FEATURE it only shows: "History" I can modify it, but if I update it will remain the same. Please help
Also I added a AccountEntitySet for the getAccount, but that also does not show. What am I doing wrong?
This should be fixed by now. Also, the JSON included is just a sample not meant to be updated with your any custom value.
A few suggestions to continue troubleshooting this issue:
android:authorities
in AndroidManifest.xml file, and actions.xml declaration. Please let me know if SLICE_AUTHORITY(#2) ends up being the issue here.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.