Как изменить функцию «Открыть» из действий приложения для OPEN_FEATURE? - PullRequest
0 голосов
/ 01 ноября 2019

Это файл actions.xml, который у меня есть:

<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>

Теперь, если я попытаюсь: «Получить учетную запись Dialer Xelion», это вызовет GET_ACCOUNT.

Если я попытаюсь «Открыть»ИСТОРИЯ в Dialer Xelion "Он также распознает функцию и открывает приложение.

Но он не работает для:" Open Call on Dialer Xelion "Как вы можете видеть, он у меня есть в FeatureEntitySet, так что может бытьпроблема?

Кроме того, в инструменте тестирования действий приложения v3.0.0, если я выбираю OPEN_APP_FEATURE, он показывает только: «История», я могу изменить ее, но если я обновлю ее, она останется прежней. Пожалуйста, помогите

enter image description here

Также я добавил AccountEntitySet для getAccount, но он также не отображается. Что я делаю не так?

enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...