From 38b34f8b12cd0a5ef5ae315a78a613dfc4b93c5c Mon Sep 17 00:00:00 2001 From: Ju Do Hyun Date: Wed, 21 Aug 2024 17:37:22 +0900 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20=EC=95=8C=EB=A6=BC=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80,?= =?UTF-8?q?=20=EC=95=8C=EB=A6=BC=EC=97=90=20url=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mvp/thinkerbell/domain/user/service/FCMService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/depth/mvp/thinkerbell/domain/user/service/FCMService.java b/src/main/java/depth/mvp/thinkerbell/domain/user/service/FCMService.java index 77d7828..7c3304f 100644 --- a/src/main/java/depth/mvp/thinkerbell/domain/user/service/FCMService.java +++ b/src/main/java/depth/mvp/thinkerbell/domain/user/service/FCMService.java @@ -14,7 +14,7 @@ public class FCMService { private final CategoryService categoryService; - public void sendFCMMessage(Alarm alarm, String keyword) { + public void sendFCMMessage(Alarm alarm, String keyword, String url) { try{ String category = categoryService.getCategoryNameInKorean(alarm.getNoticeType()); String cutTitle = cutTitle(alarm.getTitle(), 30); @@ -25,7 +25,8 @@ public void sendFCMMessage(Alarm alarm, String keyword) { Message message = Message.builder() .putData("title", "띵커벨") .putData("body", messageBody) - .putData("notification_id", UUID.randomUUID().toString()) // 고유한 ID + .putData("notification_id", UUID.randomUUID().toString())// 고유한 ID + .putData("url", url) .setToken(alarm.getUser().getFcmToken()) .build();