Skip to main content
Answered

Is it possible to use an event metadata variable to decide who gets a push notification?

  • February 10, 2023
  • 2 replies
  • 151 views

In my service, when one user performs an activity, we want to send a different user a push notification to alert them. We are using segment events to trigger the push notification. in the event metadata, we send the second users email.

 

How can we ensure the push notification is sent to the email in the metadata?

Best answer by Daniel M15

Hey @brennan b​! Daniel from Customer Support Engineering here 🔧 

 

I'm not sure that this is something that Intercom is appropriate to handle. Intercom is great for connecting to your users when they take certain action, but we'd rarely send content to user x based on actions that were performed by user y. If you are using events in a group context, you might find it easier to trigger the event for each user in the group, and set the push message to send when the event is triggered (so that it sends to each user).

 

Hope this makes sense!

View original
Did this topic help you find an answer to your question?

2 replies

Daniel M15
Employee
  • Employee
  • 240 replies
  • Answer
  • February 27, 2023

Hey @brennan b​! Daniel from Customer Support Engineering here 🔧 

 

I'm not sure that this is something that Intercom is appropriate to handle. Intercom is great for connecting to your users when they take certain action, but we'd rarely send content to user x based on actions that were performed by user y. If you are using events in a group context, you might find it easier to trigger the event for each user in the group, and set the push message to send when the event is triggered (so that it sends to each user).

 

Hope this makes sense!


  • New Participant
  • 1 reply
  • June 8, 2024

I just achieved this by detecting the event created by user “x” on my backend service. Ensuring that contact “y” exists, if not create it, then send an event for user “y”.

 

Aldo


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings