From c15afc93abd1be072a20b9540f065b939b4e0a22 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 5 Dec 2017 02:04:30 +0300 Subject: notifications: add mid to APNS notification --- .../src/main/java/com/juick/components/Notifications.java | 1 + 1 file changed, 1 insertion(+) (limited to 'juick-notifications/src/main') diff --git a/juick-notifications/src/main/java/com/juick/components/Notifications.java b/juick-notifications/src/main/java/com/juick/components/Notifications.java index d160cdc4..8be9903c 100644 --- a/juick-notifications/src/main/java/com/juick/components/Notifications.java +++ b/juick-notifications/src/main/java/com/juick/components/Notifications.java @@ -174,6 +174,7 @@ public class Notifications implements NotificationClientListener, AutoCloseable .map(ExternalToken::getToken).collect(Collectors.toList()); if (!tokens.isEmpty()) { ApnsPayloadBuilder apnsPayloadBuilder = new ApnsPayloadBuilder(); + apnsPayloadBuilder.addCustomProperty("mid", jmsg.getMid()); String post = PlainTextFormatter.formatPost(jmsg); String[] parts = post.split("\n", 2); String payload = apnsPayloadBuilder.setAlertTitle(parts[0]) -- cgit v1.2.3