推送通知首选项 [英] Push notification preferences

查看:94
本文介绍了推送通知首选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要允许用户设置用于接收推送通知的特定首选项.例子:

We need to allow a user to set specific preferences for receiving push notifications. Examples:

  1. 关闭特定频道
  2. 仅在@提及时发送推送(全局和具体聊天)

docs https://getstream.io/chat/docs/#push_ios 不会完全没有涵盖.似乎只能打开/关闭所有通知吗?

docs https://getstream.io/chat/docs/#push_ios doesn't cover it at all. Seems only turn on/off all notifications is possible?

推荐答案

当前,Stream Chat不支持此功能,因此定期添加了对Push功能的改进,因此对静音和提及的扩展支持也将很快出现.

At the moment this is not supported by Stream Chat, improvements to the Push capabilities are added regularly so extended support for mutes and mentions will also come up soon enough.

同时,您可以通过处理Webhooks的聊天事件并在Webhook处理程序上添加静音/提及逻辑来实现此目的.可以在文档中找到关于此的更多信息: https://getstream.io/chat/docs/#webhook_events

In the meantime you can achieve this by handling chat events via webhooks and add the mute/mention logic on your webhook handler. More information about this can be found in the docs: https://getstream.io/chat/docs/#webhook_events

这篇关于推送通知首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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