How to Filter Push Notifications on a Channel

I was trying to figure out how to filter a push notification on a channel. I am publishing a message from my business logic and passing header values. I would like the message to go to a channel but for the user whose userId is passed in the header to not receive the push notification.

Can someone help understand how that would work. I’m using Javascript for Business Logic and using iOS for App code.


Hi Jonathan,

I do not think you can exclude users from receiving a push notification. Instead you can target a specific user (i.e. device) when sending a notification. Here’s an example:


Thank you Mark. I think this will work for my purposes.