[英]Problem with google assistant and app actions in Android TV
I use custom intents from the app actions, after executing the command the assistant does not close, it remain open with a twisting throbber, but the focus remains on our application and to close the assistant i need to press the home button.我使用来自应用程序操作的自定义意图,在执行命令后助手不会关闭,它会保持打开状态,但会保持打开状态,但焦点仍然在我们的应用程序上,要关闭助手,我需要按下主页按钮。
actions.xml:行动。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: 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 work out correctly, but the assistant does not close.意图正常工作,但助手没有关闭。
App Actions are currently not supported in Android TV. Android TV 目前不支持应用操作。 Stay tuned for updates.
请继续关注更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.