Skip to main content

Sending custom payload with push notifications


Forum|alt.badge.img+2

Hi Klaviyo team,

 

We’re using flows to send push notifications to our customers. Is there a way for us to add some custom data to push notification payload so that we can identify which flow triggered this push and we can act accordingly? 

Did this topic or the replies in the thread help you find an answer to your question?

7 replies

alex.hong
Forum|alt.badge.img+58
  • Klaviyo Alum
  • 1552 replies
  • July 22, 2022

Hi @Manish-fueled,

Welcome to the Community and thanks for sharing. Unfortunately, we currently do not support custom data/values/payloads at this time for push notifications, but it is on our product team’s roadmap. We hope to update our product with ideas from community members like yourself so thank you for posting about your scenario.

 

All the best,

Alex


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • July 29, 2022

Hi @alex.hong,

 

Thanks for the response. Is there no way for us to know which campaign triggered the notification?


alex.hong
Forum|alt.badge.img+58
  • Klaviyo Alum
  • 1552 replies
  • July 29, 2022

Hi @Manish-fueled,

I would recommend checking with our Support team to see if they can take a look into your integration and how your campaigns are set up with your push notifications. 


markpiana
Klaviyo Employee
Forum|alt.badge.img+4
  • Klaviyo Employee
  • 25 replies
  • July 12, 2023

Hi @Manish-fueled

I’m the Klaviyo Product Manager responsible for mobile push notifications. Would you mind sharing more information about your use case? What are you hoping to do with the flow ID / message ID? Would you change the state of your app based on it?

In case you were not aware, you currently can find information about the campaign / flow / message in the Received Push event in Klaviyo. Is that sufficient for your use case?

Thanks,

Mark


  • Contributor I
  • 1 reply
  • May 29, 2024

Hey @markpiana i actually have the same use case i think.
I use amplitude for example to measure all my customer engagement and i want to understand who got which push and it was connected into which flow.
The only way i found how to do it is with a web hook and a delay of an hour.
But its a bit messy .
If there was a way to report it in a better sense on an analytical perspective - like send an even directly + report if user opened the push or didnt that would be a super significant change for us


markpiana
Klaviyo Employee
Forum|alt.badge.img+4
  • Klaviyo Employee
  • 25 replies
  • June 4, 2024

@Theproster That makes sense that you’re trying to perform reporting through Amplitude, but I’m not certain I fully understand your suggestion. Are you asking for a way to add more metadata onto each push notification that you can access through your app somehow (e.g., setting key-value pairs like key = flow ID, value = abc123)? Or would some way of querying Received Push and Opened Push events by flow ID & message ID on some interval suffice? Based on your comment of an hour delay, I’m assuming you’re hoping for something relatively instantaneous.


  • Contributor I
  • 1 reply
  • June 27, 2024

We are facing a similar issue. I am triggering a Push Notification when a custom metric is sent to Klaviyo. Is there a way we can send the metadata from the custom metric into the Push Notification payload?