From 63bd3dc532d20143b70adef1fff6c929fb524304 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 1 Oct 2024 10:01:56 +0300 Subject: vnext: fix fcm parameters --- vnext/server/sender.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vnext/server') diff --git a/vnext/server/sender.js b/vnext/server/sender.js index fa8c4853..257c79f7 100644 --- a/vnext/server/sender.js +++ b/vnext/server/sender.js @@ -143,15 +143,15 @@ export function buildNotification(user, msg) { template.body = body //template.badge = user.unreadCount || 0 template.mutableContent = 1 - template.color = '#3c77aa' - template.icon = 'ic_notification' - template.clickAction = 'com.juick.NEW_EVENT_ACTION' const tag = msg.mid == 0 ? msg.user.uname : msg.mid template.tag = `${tag}` template.fcm_notification = { title: title, body: body, - channel_id: 'default' + channel_id: 'default', + click_action: 'com.juick.NEW_EVENT_ACTION', + icon: 'ic_notification', + color: '#3c77aa' } } return template -- cgit v1.2.3