【问题标题】:Google Assistant App Actions codelab example not working (Fit Actions) on AndroidTVGoogle Assistant App Actions codelab 示例在 AndroidTV 上不起作用(Fit Actions)
【发布时间】:2021-10-26 22:30:22
【问题描述】:

我正在尝试这个例子: https://codelabs.developers.google.com/codelabs/appactions/#0

我已经构建了应用程序并将其安装在我的 AndroidTV 设备上,并且能够通过以下方式启动它:

am start -a android.intent.action.VIEW -d "https://fit-actions.firebaseapp.com/start"

但是,当我尝试运行 App Actions Test Tool 并尝试建议的 actions.intent.START_EXERCISE 意图(据说与 Google 助理集成)时,我只看到一条错误消息,“你不知道有一个可以做到这一点的应用程序”。整个命令如下所示:

am start -a android.intent.action.VIEW -d "https://assistant.google.com/services/invoke/uid/00001f0ad064c9a0?intent=actions.intent.START_EXERCISE\&param.exercise=%7B%0A++++%22%40type%22%3A+%22Exercise%22%2C%0A++++%22name%22%3A+%22Running%22%2C%0A++++%22%40context%22%3A+%22http%3A%2F%2Fschema.googleapis.com%22%0A%7D"

另外,我尝试直接说出请求“嘿 Google,开始在 Fit Actions 中运行”,但我得到了同样的错误。有什么想法可能会丢失吗?

【问题讨论】:

    标签: android google-assistant app-actions


    【解决方案1】:

    我刚刚意识到 AndroidTV 不支持 AppActions,我在三星平板电脑上尝试了这个示例,测试工具可以正常启动它。也就是说,尝试使用语音命令时仍然无法正常工作

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-03
      • 2021-12-15
      • 1970-01-01
      • 2022-12-15
      • 2019-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多