【问题标题】:How to tell Google Assistant to automatically open Android App using Actions Builder or Actions SDK?如何告诉 Google Assistant 使用 Actions Builder 或 Actions SDK 自动打开 Android 应用程序?
【发布时间】:2021-09-08 22:43:45
【问题描述】:

通过谷歌助手中的对话,我想在手机上打开我的安卓应用。

例如:我正在与我的聊天机器人交谈,作为对我的查询的回应,机器人应该打开我的 Android 应用。

我的要求是自动打开应用(用户无需点击深层链接响应即可打开应用)

我查看了 Action Builder 和 Actions SDK 的文档和参考资料。但是找不到任何合适的解决方案。

我已经看过另一个similar questionresponse。但是,该解决方案建议用户必须手动点击对话响应中的深层链接才能打开不符合我需求的应用。我希望应用程序在没有用户干预的情况下自动打开

谁能提供代码 sn-p(用于 webhook)或如何操作的步骤?

感谢帮助

【问题讨论】:

    标签: android actions-on-google actions-builder


    【解决方案1】:

    正如其他回复指出的那样,没有自动方式以这种方式打开应用程序。您可能能够做的是让您的 webhook send a push notification to your mobile app,然后是 automatically open the app

    【讨论】:

    • 我使用了 Firebase 云消息服务来实现这一点。我的 android 应用监听 FirebaseMessagingService 中的消息,我的 Webhook 发送通知消息。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-15
    • 2022-12-21
    • 2021-10-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多