Push notification preferences

a 夏天 提交于 2021-01-29 04:48:11

问题


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

  1. mute specific channel
  2. send push only when @mentioned (global and chat specificly)

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


回答1:


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.

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



来源:https://stackoverflow.com/questions/57856985/push-notification-preferences

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!