android - 将 Intent 从 Google Assistant 发送到我的智能手机

标签 android actions-on-google google-assistant-sdk

我想执行以下操作:

  • 向 Google Home(中的 Google 助理)发出命令
  • 从那里,将 Intent 发送到我的 Android 智能手机,启动应用程序(在特定 Activity 上)

通过 Google 操作可以做到这一点吗?

我已扫描https://developers.google.com/actions/但我不清楚是否可以将 Intent 发送到我的手机。如果有的话可以指点一下吗?

提前致谢,

马克

最佳答案

没有直接的方法可以做到这一点。以下是接近所需行为的几种方法:

  1. 当您的 Google 助理界面上触发 Intent 时,向您的手机发送推送通知(需要 account linking )。然后,此推送通知可以启动 Intent 。

  2. 您可以在 request a new surface 的操作中使用帮助程序具有屏幕功能。这不会发送您的应用程序的 Intent ,但会将对话转移到可能更有意义的新界面。 (这个新表面可能能够呈现 Card 以及到您的应用程序的深层链接)

关于android - 将 Intent 从 Google Assistant 发送到我的智能手机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56361621/

相关文章:

Android AOSP Repo 同步本地镜像

android - setText 错误 : "Only the original thread .. can touch its views"

google-cloud-platform - 如何在没有对话流的情况下使用Google Assistant

google-oauth - 当我尝试在我的网络服务上授权 Google Assistant 时,发生 "Accounts failed to link"错误

java - 从 Java 向 Google Assistant 发送请求

javascript - 为 Google Assistant 执行命令 - Node js

android - 只需要为移动设备设置肖像

java - 像在android收件箱中一样通过短信制作聊天页面

actions-on-google - 他们有没有办法在对话流中发送多个简单的响应

node.js - Google Home Assistant 上的 mp3 直播有延迟