【问题标题】:Google Actions / Dialogflow - open installed applicationGoogle Actions / Dialogflow - 打开已安装的应用程序
【发布时间】:2018-04-13 07:41:53
【问题描述】:

我有一个连接到 Dialogflow 和 Firebase 的 Google Actions 应用程序。有没有办法从 Dialogflow 打开另一个 Java 应用程序(安装在设备上 - 例如 Android)?我希望深层链接“native-android-application”是可行的方法,但我找不到任何东西。

总结一下,我正在考虑以下流程:

  1. 与“应用 ABC”对话(Google 助理将初始化 google 操作应用)
  2. 发送 1(将调用“应用 ABC”中的发送函数)
  3. 'app ABC' 将返回一个 deep-link 到原生 android 应用程序'native-android-application' (native-android-application://info?id=')
  4. 当用户点击返回的响应时,native-android-application 将被打开

【问题讨论】:

  • “我什么都找不到”是什么意思?
  • 任何有用的东西,这就是我在这里问的原因。

标签: actions-on-google dialogflow-es


【解决方案1】:

它仍处于开发者预览阶段(因此您可以对其进行测试,但还不能公开发布),但您可以使用作为 Actions on Google API 一部分的Android Link helper。您需要在 Actions 开发者控制台中链接应用程序,然后您就可以执行以下操作:

function androidLink (app) {
  app.askToDeepLink('Great! Looks like we can do that in the Android app.', 'Gizmos for Android',
    'example://gizmos', 'com.example.gizmos', 'handle this for you');

  // Results in prompt:
  // "Great! Looks like we can do that in the Android app."
  // "Can I send you to Gizmos for Android mobile app to handle this for you?"
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-04
    • 1970-01-01
    • 2014-03-22
    • 1970-01-01
    相关资源
    最近更新 更多