From 740b8b94b00e828d02e0ac50b4f65d6b6e4216c5 Mon Sep 17 00:00:00 2001 From: Sin Ye Rin <91180366+nyeroni@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:26:20 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20fcm=20apns=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/yerong/wedle/common/utils/FcmUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/yerong/wedle/common/utils/FcmUtils.java b/src/main/java/yerong/wedle/common/utils/FcmUtils.java index fcfe5ea..91f38b7 100644 --- a/src/main/java/yerong/wedle/common/utils/FcmUtils.java +++ b/src/main/java/yerong/wedle/common/utils/FcmUtils.java @@ -7,6 +7,7 @@ import com.google.firebase.messaging.FirebaseMessagingException; import com.google.firebase.messaging.MulticastMessage; import com.google.firebase.messaging.Notification; + import java.util.Date; import java.util.List; import lombok.AccessLevel; @@ -29,8 +30,8 @@ public static void broadCast(final List registrationTokens, String title .build()) .setApnsConfig(ApnsConfig.builder() .setAps(Aps.builder().setAlert(body).build()) - .putHeader("apns-expiration", Long.toString(EXPIRED_TIME_FOR_UNIX)) - .build()) + .putHeader("apns-expiration", Long.toString(EXPIRED_TIME_FOR_UNIX)) + .build()) .addAllTokens(registrationTokens) .build();