Skip to content

Commit 601bcfe

Browse files
committed
fix: 프론트에서 알림이 중복으로 표시되던 현상 수정
1 parent 46043aa commit 601bcfe

File tree

1 file changed

+2
-6
lines changed
  • src/main/kotlin/site/billilge/api/backend/global/external/fcm

1 file changed

+2
-6
lines changed

src/main/kotlin/site/billilge/api/backend/global/external/fcm/FCMService.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ class FCMService(
99
) {
1010
@Throws(FirebaseMessagingException::class)
1111
fun sendPushNotification(fcmToken: String, title: String, body: String, link: String) {
12-
val notification = Notification.builder()
13-
.setTitle(title)
14-
.setBody(body)
15-
.build()
16-
1712
val fcmMessage = Message.builder()
18-
.setNotification(notification)
13+
.putData("title", title)
14+
.putData("body", body)
1915
.putData("link", link)
2016
.setToken(fcmToken)
2117
.build()

0 commit comments

Comments
 (0)