From c08f9cf15e417504c20983c1ae5cf5cfc391662f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 8 Apr 2018 11:55:45 +0300 Subject: notifications: push uname to APNS for PMs --- .../src/main/java/com/juick/components/Notifications.java | 1 + 1 file changed, 1 insertion(+) (limited to 'juick-notifications/src') 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 410debd4..5f6630fb 100644 --- a/juick-notifications/src/main/java/com/juick/components/Notifications.java +++ b/juick-notifications/src/main/java/com/juick/components/Notifications.java @@ -176,6 +176,7 @@ public class Notifications implements NotificationClientListener, AutoCloseable, if (!tokens.isEmpty()) { ApnsPayloadBuilder apnsPayloadBuilder = new ApnsPayloadBuilder(); apnsPayloadBuilder.addCustomProperty("mid", jmsg.getMid()); + apnsPayloadBuilder.addCustomProperty("uname", jmsg.getUser().getName()); String post = PlainTextFormatter.formatPost(jmsg); String[] parts = post.split("\n", 2); String payload = apnsPayloadBuilder.setAlertTitle(parts[0]) -- cgit v1.2.3