diff options
Diffstat (limited to 'vnext/server/sender.js')
-rw-r--r-- | vnext/server/sender.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vnext/server/sender.js b/vnext/server/sender.js index fa8c4853..d5272bfb 100644 --- a/vnext/server/sender.js +++ b/vnext/server/sender.js @@ -24,7 +24,7 @@ const fcmConfig = { serviceAccountKey: process.env.JUICK_FCM_SERVICE_ACCOUNT_FILE } -console.log(`fcm config: ${JSON.stringify(fcmConfig)}`) +log(`fcm config: ${JSON.stringify(fcmConfig)}`) const push = new PushNotifications({ ...config, @@ -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 |