Skip to content

Commit

Permalink
Support setting a title if sent on APS
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Cunningham <[email protected]>
  • Loading branch information
digitaldan committed Jun 26, 2024
1 parent cf8ec65 commit f274b32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions notificationsender/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f274b32

Please sign in to comment.