From b8635773d5f85e0b8fddb7fdc369d729adcd96fa Mon Sep 17 00:00:00 2001 From: jihwan2da Date: Thu, 23 Nov 2023 21:06:10 +0900 Subject: [PATCH] =?UTF-8?q?fix(push):=20push=20=EC=9A=94=EC=B2=AD=EC=97=90?= =?UTF-8?q?=20notification=20=EB=B0=94=EB=94=94=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push/src/main/kotlin/gloddy/PushClient.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/push/src/main/kotlin/gloddy/PushClient.kt b/push/src/main/kotlin/gloddy/PushClient.kt index f25221e..0c6a3d6 100644 --- a/push/src/main/kotlin/gloddy/PushClient.kt +++ b/push/src/main/kotlin/gloddy/PushClient.kt @@ -2,6 +2,7 @@ package gloddy import com.google.firebase.messaging.FirebaseMessaging import com.google.firebase.messaging.Message +import com.google.firebase.messaging.Notification import org.springframework.stereotype.Component @Component @@ -11,6 +12,12 @@ class PushClient { val message = Message.builder() .putData("title", data.title) .putData("content", data.content) + .setNotification( + Notification.builder() + .setTitle(data.title) + .setBody(data.content) + .build() + ) .putAllData(data.payload) .setToken(data.token) .build()