如何在家用设备中应答用户并将通知发送到用户的电话 [英] How to answer a user in Home device and send a notification to user's phone

查看:60
本文介绍了如何在家用设备中应答用户并将通知发送到用户的电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在家用设备中是否可以回答用户问题,同时将通知发送到另一台设备?
例如,如果用户询问方向,请回答位置(语音),然后对用户说:我已将位置信息发送给您的手机,然后给他发送地图...



我知道有一种方法可以将会话切换到另一台设备(例如,带有屏幕的设备),但是我不想在家用设备中完成它。 / p>

预先感谢。

解决方案

不是简单的方法,不是,但是有一些选项可以满足您的需求。



您可以尝试使用辅助通知。目前,通知仅显示在移动设备上,但是即使将来将来允许扬声器通知,您的用户仍可以在移动设备上打开通知。您需要征求发送通知的许可,当他们触发通知时,您的意图将被触发以实际显示您想要显示的内容。



您还可以考虑使用更标准的通知渠道,例如 Firebase云消息传递。这确实需要您在移动设备上拥有自己的应用程序,并且它可以在助手外部运行,但是如果满足您的需求,它可能是一个不错的选择。


Is there any way to answer a user question in the Home device and at the same time, send a notification to another device? For example, if the user ask for a direction, answer with the location (voice) and finish saying to the user:"I've sent you the location to your phone" and send him a map...

I know there is a way to switch conversation to another device (say, for example, one with screen) but I don't want to finish it in Home device.

Thanks in advance.

解决方案

Not in a straightforward way, no, but there are a few options that you have that may do what you want.

You can try to use Assistant Notifications. Right now, notifications only appear on mobile devices, but even if/when they allow speaker notifications in the future, your user could still open it on a mobile device. You need to ask for permission to send a notification, and when they trigger the notification, an Intent in your Action will be triggered to actually show what you want to show.

You can also look into using a more standard notification channel such as Firebase Cloud Messaging. This does require you to have your own app on the mobile device, and it works outside of the Assistant, but may be a good choice if it meets your needs.

这篇关于如何在家用设备中应答用户并将通知发送到用户的电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆