Skip to main content

Hi

I’m using klaviyo-react-native-sdk to integrate push notifications on my react native app, I already added the configuration to connect Firebase Cloud Messaging with Klaviyo for android.

I’m able to push tokens to Klaviyo, but when I send a standard push notification is not displaying on the device, I tested sending a push notification from Firebase Console and is working fine.

I used the standard option to send the notifications and get the payloads 

These are the payloads:

Firebase payload:

{
"notification":{
"android":{

},
"body":"test",
"title":"test push notification"
},
"originalPriority":1,
"priority":1,
"sentTime":1752786738312,
"data":{

},
"from":"----",
"messageId":"------",
"ttl":2419200,
"collapseKey":"---"
}

Klaviyo payload:

{
"originalPriority":1,
"priority":1,
"sentTime":1752779746234,
"data":{
"title":"test push notification",
"body":"test",
"notification_tag":"2025-07-17T19:15:45.993475+00:00",
"_k":"{\"Push Platform\":\"android\"}"
},
"from":"---",
"messageId":"-----",
"ttl":2419200
}

the difference is that Firebase sends the data in the notification property and Klaviyo sends it in the data property and is not recognized as a standard push notification.

Is this a Klaviyo bug or there is some configuration missing?

 

Thanks

Hey ​@devsEveryMother,

Thanks for sending over those example payloads. A message in the “data” property can still display a notification, it just isn’t handled automatically by the stock firebase SDK. There is Klaviyo SDK code that needs to run within a service in order to parse the data and display our notification.

If you’re only using Klaviyo React Native and Firebase for sending, you shouldn’t need any additional setup if you’re using klaviyo-react-native v2.0. If you’re using klaviyo-react-native 1.x, and can’t update for some reason, then you’ll likely need to add our push service to your AndroidManifest.xml file per the readme.

If you’re using Klaviyo and some other 3rd party push sending service, you’ll need to follow steps from this link. You’ll have to write your own service that routes the data message to the proper 3rd party SDK.

Let me know if this helps or if I can clarify anything else.


Hey folks!

I ran into this too and it turns out Klaviyo isn’t “forgetting” how to push notifications—it just sends everything under data instead of a top-level notification block. Android treats those as “data messages,” so you need to show them yourself in your React Native code.

I fixed it by adding an onMessage listener and calling KlaviyoReactNative.displayNotification(title, body, extras) whenever a data message arrives. Now my test push pops up just like the ones from Firebase Console.

Hope that helps you get your app buzzing with Klaviyo pushes!