Skip to content

Commit

Permalink
[feat] Fcm Token 존재 유무 판별 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo0419 committed Aug 30, 2024
1 parent 97c4e2a commit 844f4db
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public void send(
final String fcmToken,
final FcmMessageDto fcmMessageDto
){
if (fcmToken == null) {
log.warn("Fcm Token이 존재하지 않습니다.");
return;
}
Message message = createMessage(fcmToken, fcmMessageDto);
try{
FirebaseMessaging.getInstance().send(message);
Expand Down

0 comments on commit 844f4db

Please sign in to comment.