react-native-activity-feed icon indicating copy to clipboard operation
react-native-activity-feed copied to clipboard

How to notify other user of the activity when liking a feed

Open jamesawer3 opened this issue 5 years ago • 2 comments
trafficstars

I need to notify other users of the feed and I should also get notified when a activity of timeline is liked. I'm using below line for liking a activity and its successfully liking that activity but how to notify other users

await streamClient.reactions.add("like", activityId);

jamesawer3 avatar Jan 21 '20 15:01 jamesawer3

atm we do not send notifications for reactions; as a workaround you can use the target_feeds option to create an activity to another feed and listen for changes there https://getstream.io/docs/#reactions_notify-other-feeds

tbarbugli avatar Jan 22 '20 08:01 tbarbugli

@tbarbugli Can you explain how to use this { targetFeeds: ["notification:thierry"] } whose name should be mentioned inside the notification

jamesawer3 avatar Jun 04 '20 09:06 jamesawer3