问题
We need to allow a user to set specific preferences for receiving push notifications. Examples:
- mute specific channel
- 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