Skip to content

Notifications not showing when client.disconnect(); #866

Answered by Mr-k404
Mr-k404 asked this question in Q&A
Discussion options

You must be logged in to vote

I found the solution for that , the problem was that I used channel.watch(); instead, I should also add the user to the channel channel.addMembers(["thierry", "josh"]); in order to receive push notifications as it is mentioned in the docs

Watchers vs Members

The concepts of watchers vs members can require a bit of clarification:

members: a permanent association between a user and a channel. If the user is online and not watching the channel they will receive a notification event, if they are offline they will receive a push notification.

watchers: the list of watchers is temporary. It's anyone who is currently watching the channel.

Being able to send messages, and otherwise engage with …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mr-k404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant