We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c62eb3c commit d21bcc1Copy full SHA for d21bcc1
src/utils/tools.js
@@ -85,7 +85,7 @@ const containsValidRecipients = (obj) => {
85
};
86
87
const buildGcmNotification = (data) => {
88
- const notification = data.fcm_notification || {
+ const notification = {
89
title: data.title,
90
body: data.body,
91
icon: data.icon,
@@ -105,6 +105,11 @@ const buildGcmNotification = (data) => {
105
notification_count: data.notificationCount || data.badge,
106
107
108
+ // Merge with fcm_notification overrides if provided
109
+ if (data.fcm_notification) {
110
+ return { ...notification, ...data.fcm_notification };
111
+ }
112
+
113
return notification;
114
115
0 commit comments