google 电视中的 google 助手和应用操作有问题

Problem with google assistant and app actions in Android TV

我使用来自应用程序操作的自定义意图,在执行命令后助手没有关闭,它仍然打开并带有扭曲的悸动,但焦点仍然在我们的应用程序上并关闭助手我需要按主页按钮。

actions.xml:

<?xml version ="1.0" encoding ="utf-8"?>
<actions>
    <action
        intentName="custom.actions.intent.OPEN_APP_FEATURE"
        queryPatterns="@array/feature_queries">
        <parameter
            name="action"
            type="https://schema.org/Text" />
        <parameter
            name="text"
            type="https://schema.org/Text" />

        <fulfillment urlTemplate="https://safarov.page.link/open{?item_action,item_text}">
            <parameter-mapping
                intentParameter="action"
                urlParameter="item_action" />
            <parameter-mapping
                intentParameter="text"
                urlParameter="item_text" />
        </fulfillment>
    </action>
</actions>

AndroidManifest.xml:

<intent-filter
    android:autoVerify="true"
    tools:targetApi="m">
    <action android:name="android.intent.action.VIEW" />

    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

    <data
        android:host="safarov.page.link"
        android:scheme="https" />
</intent-filter>

Intents 运行正常,但助手没有关闭。

Android 电视目前不支持应用操作。请继续关注更新。