Skip to content

Commit

Permalink
refactor: fcm apns 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nyeroni committed Oct 30, 2024
1 parent c4e3a24 commit 740b8b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/yerong/wedle/common/utils/FcmUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -29,8 +30,8 @@ public static void broadCast(final List<String> 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();

Expand Down

0 comments on commit 740b8b9

Please sign in to comment.