Hi,
Is there a way to exclude a device from receiving a push notification published to a specific channel ?
The situation is that I want every user that commented or liked a post to be notified whenever someone else likes or comments on this post. BUT I don’t want a user to receive this notification after their own action. So whenever I like or comment the post I would have to publish notification to a specific channel excluding myself from receiving it.
Is that possible ?
Hello!
No, there is no straight way to implement it through native API - you can send message targeting specific OS, or targeting specific group of devices, but you cannot target specific OS, excluding some devices.
I believe that method “likePost( Post post )” can be easily implemented through custom hosted service feature. You can make selection of target devices right inside the method and send a push notification from it.