From 9cffa3392069f8080193e5b6388a4c5f146f70f4 Mon Sep 17 00:00:00 2001 From: devxb Date: Fri, 16 Feb 2024 12:07:56 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20title,=20body=20alert=20data?= =?UTF-8?q?=EC=97=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/net/teumteum/alert/infra/FcmAlertPublisher.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/teumteum/alert/infra/FcmAlertPublisher.java b/src/main/java/net/teumteum/alert/infra/FcmAlertPublisher.java index 7b9c830..68ae10d 100644 --- a/src/main/java/net/teumteum/alert/infra/FcmAlertPublisher.java +++ b/src/main/java/net/teumteum/alert/infra/FcmAlertPublisher.java @@ -44,6 +44,8 @@ private Message buildMessage(String token, Alert alert, Map data .setToken(token) .setNotification(buildNotification(alert)) .setAndroidConfig(buildAndroidConfig(alert)) + .putData("title", alert.getTitle()) + .putData("body", alert.getBody()) .putData("publishedAt", alert.getCreatedAt().toString()) .putData("userId", alert.getUserId().toString()) .putData("type", alert.getType().toString())