klaviyo / klaviyo-react-native-sdk

MIT License
5 stars 6 forks source link

[Android] Sender-Id Mismatch issue #170

Closed Ibrar-Younas closed 3 months ago

Ibrar-Younas commented 3 months ago

Checklist

Description

Your sender ID does not match the sender ID for this push token. Verify that you are using the correct package name under your account's Android Push Notification settings.

Expected behavior

When I send notification from the klaviyo campaign dashboard then it will be broadcasted to the selected audience

Actual behavior

When I send notification from the klaviyo campaign dashboard then it will show error Your sender ID does not match the sender ID for this push token. Verify that you are using the correct package name under your account's Android Push Notification settings.

Steps to reproduce

1- Create campaign on klaviyo
2- Select the audience list
3- Add some description for the notification
4- Click on Send Preview and add the push token get from the firebase
5- klaviyo shows error "Your sender ID does not match the sender ID for this push token. Verify that you are using the correct package name under your account's Android Push Notification settings."

The Klaviyo React Native SDK version information

'0.4.2'

Environment Description

Run react native klaviyo SDK on android, android OS version 10

Ibrar-Younas commented 3 months ago

@ajaysubra kindly check this issue, I need your assistance on it. Not able to find any solution. There is no option in klaviyo dashboard to set the senderId for the android push notifications. When I send notification from firebase they work fine. But from klaviyo they give sender Id issue.

ajaysubra commented 3 months ago

Hey @Ibrar-Younas, This is an error reported from FCM when we try to send a push message to this token using the service account file configured in your Klaviyo account settings. Please check that the service account key you’ve configured here corresponds to the app you are trying to send a notification to. Here's our help docs on how to correctly set this up. Good luck!