-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Description
Sending custom data with FCM is not working. When trying to log the notification received in Expo React Native, no custom data is received.
Here's the code:
const settings = {
fcm: {
appName: 'xxxxx',
serviceAccountKey: jsonKey,
credential: null,
}
}
const push = new PushNotifications(settings);
const deviceToken = 'xxxxxxxxxx';
const data = {
title: 'XXXX',
body: 'Message',
custom: {
// Additional data to send with the notification for android
name: 'test'
},
};
push.send(deviceToken, data, (error: Error, result: any) => {
});
The notification is received but the custom param "name" is not there.
hajjarjoseph and arnaudambro
Metadata
Metadata
Assignees
Labels
No labels