aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-05 02:04:30 +0300
committerGravatar Vitaly Takmazov2017-12-04 23:05:59 +0000
commitc15afc93abd1be072a20b9540f065b939b4e0a22 (patch)
tree7f4986357020f31e86edd26d0287e3c7c7133a19 /juick-notifications/src/main
parent7482770726347c7fecf63f045dae266e95c7db2c (diff)
notifications: add mid to APNS notification
Diffstat (limited to 'juick-notifications/src/main')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/Notifications.java1
1 files changed, 1 insertions, 0 deletions
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])