From 6a38f6a8b3da1e2e5d2e93a705f644e9a1a96a27 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 13 Dec 2019 18:43:38 -0300 Subject: [PATCH] Group iOS notifications --- lib/server/push.api.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/server/push.api.js b/lib/server/push.api.js index 12064fe..853d24d 100644 --- a/lib/server/push.api.js +++ b/lib/server/push.api.js @@ -217,6 +217,11 @@ Push.Configure = function(options) { if (typeof notification.title !== 'undefined') { note.alert.title = notification.title; + note.alert['summary-arg'] = notification.title; + } + + if (typeof notification.notId !== 'undefined') { + note['thread-id'] = notification.notId; } // Allow the user to set payload data