From f274b3236027cb14cdb4f4e5c4ca4e310ff26670 Mon Sep 17 00:00:00 2001 From: Dan Cunningham Date: Wed, 26 Jun 2024 09:35:01 -0700 Subject: [PATCH] Support setting a title if sent on APS Signed-off-by: Dan Cunningham --- notificationsender/firebase.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notificationsender/firebase.js b/notificationsender/firebase.js index 9dc5627..8f1e30a 100644 --- a/notificationsender/firebase.js +++ b/notificationsender/firebase.js @@ -63,6 +63,10 @@ exports.sendFCMNotification = function (registrationIds, notificationId, data) { apns.payload.aps.category = crypto.createHash('sha256').update(data.actions).digest('hex'); } + if(data.title){ + apns.payload.aps.alert.title = data.title + } + const message = { android: android, apns: apns,