braze-inc / braze-react-native-sdk

Public repo for the Braze React Native SDK
https://www.braze.com
Other
64 stars 84 forks source link

Push Notification is received, but not showing in Android? #147

Closed lahiurban closed 2 years ago

lahiurban commented 2 years ago
{
    "notification": {
        "title": "Test title",
        "body": "Test mobile"
    }
}

Do we need this JSON format to read a push notification message? But in braze, I am getting a different format

Bucimis commented 2 years ago

@lahiurban are you sending that payload manually through FCM or through the Braze API/dashboard? When sending push to FCM, the Braze servers includes a special key which ultimately let the SDK know the push is from Braze, if that key is not included, the SDK will not ask the OS to display the notification. You should be able to see this in the verbose logs.

lahiurban commented 2 years ago

@lahiurban are you sending that payload manually through FCM or through the Braze API/dashboard? When sending push to FCM, the Braze servers includes a special key which ultimately let the SDK know the push is from Braze, if that key is not included, the SDK will not ask the OS to display the notification. You should be able to see this in the verbose logs.

Thanks so much! I have missed the OWN FIREBASE MESSAGING SERVICE step