Hello,
I have Klaviyo integrated in my react native app with `klaviyo-react-native-sdk`. When I’m sending test notifications from campaign it works well with iOS version. But there is one issue on Android version when app is closed.
Notifications on Android are not displayed when app is closed probably because they don’t include ‘notification’ payload (only ‘data’) so Android won’t show it. I can’t see any option in Klaviyo dashboard to set custom payload for push notifications. Is it somehow manageable?
(I can display notification properly while app is in the background or in the foreground but not when it’s closed)
Thank you
Page 1 / 1
Hey
Thanks for reaching out for help with this!
Hello
Trying removing android:exported="false" from this code
<service android:name="your.package.name.YourPushService" android:exported="false"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" /> </intent-filter> </service>
Thanks for helping
I guess the code is from `AndroidManifest.xml` but I don’t have anything like that in it (no `<service>` or `android:exported=false` near messaging service).
App is managed by Expo and in our team we would like to avoid changing native code.
Also notifications sent from the Firebase console or our backend service are displayed correctly whether the app is closed or not.
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.