Skip to content

Commit 4eb9523

Browse files
authored
Merge pull request #78 from teamterning/refactor/#76
[♻️ refactor] iOS의 APNs를 고려한 FCM 데이터 페이로드 형식 변경(2)
2 parents b55e481 + 16944a8 commit 4eb9523

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/terning/fcm/application/FcmPushSenderImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public boolean send(Notification notification) {
3737
Aps aps = Aps.builder()
3838
.setAlert(apsAlert)
3939
.setMutableContent(true)
40+
.putCustomData("type", type)
41+
.putCustomData("imageUrl", imageUrl)
4042
.build();
4143

4244
ApnsConfig apnsConfig = ApnsConfig.builder()
@@ -52,6 +54,8 @@ public boolean send(Notification notification) {
5254
.putData("imageUrl", imageUrl)
5355
.build();
5456

57+
log.info("📦 전송된 FCM 메시지: {}", fcmMessage);
58+
5559
String response = FirebaseMessaging.getInstance().send(fcmMessage);
5660
log.info("FCM 메세지 전송 성공, 응답 ID: {}", response);
5761
return true;

0 commit comments

Comments
 (0)