Skip to content

Commit

Permalink
Merge pull request #322 from RocketChat/add-support-to-title-in-ios
Browse files Browse the repository at this point in the history
feat: add support to title on iOS
  • Loading branch information
rodrigok authored Nov 22, 2017
2 parents 5c4f613 + 62a2584 commit b49487a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/server/push.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,14 @@ Push.Configure = function(options) {
note.category = notification.category;
}

note.alert = notification.text;
note.alert = {
body: notification.text
};

if (typeof notification.title !== 'undefined') {
note.alert.title = notification.title;
}

// Allow the user to set payload data
note.payload = (notification.payload) ? { ejson: EJSON.stringify(notification.payload) } : {};

Expand Down

0 comments on commit b49487a

Please # to comment.