diff --git a/src/main/java/com/numberone/backend/support/fcm/service/FcmMessageProvider.java b/src/main/java/com/numberone/backend/support/fcm/service/FcmMessageProvider.java index 36b9c464..d8f8911d 100644 --- a/src/main/java/com/numberone/backend/support/fcm/service/FcmMessageProvider.java +++ b/src/main/java/com/numberone/backend/support/fcm/service/FcmMessageProvider.java @@ -48,7 +48,7 @@ public void sendFcm(Member member, NotificationMessage notificationMessage, Noti .build(); try { //String response = FirebaseMessaging.getInstance().send(message); - FirebaseMessaging.getInstance().sendAsync(message); + FirebaseMessaging.getInstance().send(message); notificationRepository.save(new NotificationEntity(member, tag, title, body, true)); log.info("Fcm 푸시 알람을 성공적으로 전송하였습니다."); log.info("[FCM Message] {} : {}", title, body); @@ -78,7 +78,7 @@ public void sendFcm(Member member, String title, String body, NotificationTag ta .build(); try { //String response = FirebaseMessaging.getInstance().send(message); - FirebaseMessaging.getInstance().sendAsync(message); + FirebaseMessaging.getInstance().send(message); notificationRepository.save(new NotificationEntity(member, tag, title, body, true)); log.info("Fcm 푸시 알람을 성공적으로 전송하였습니다."); log.info("[FCM Message] {} : {}", title, body);