Skip to content

Commit

Permalink
Merge pull request #199 from team-winey/fix/#198
Browse files Browse the repository at this point in the history
[Fix/#198] νŽ˜μ΄λ‘œλ“œ λΆ€λΆ„ μˆ˜μ •
  • Loading branch information
sss4920 authored Dec 3, 2023
2 parents 4674505 + 1244991 commit 7435e21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/winey/server/service/FcmService.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,14 @@ public void sendByToken(FcmRequestDto wineyNotification) {
Message message = Message.builder()
.putData("feedId", String.valueOf(wineyNotification.getFeedId()))
.putData("notiType", String.valueOf(wineyNotification.getType()))
.putData("token", wineyNotification.getToken())
.setNotification(new Notification("μœ„λ‹ˆ 제ꡭ의 νŽΈμ§€κ°€ λ„μ°©ν–ˆμ–΄μš”.", wineyNotification.getMessage()))
.putData("title", "μœ„λ‹ˆ 제ꡭ의 νŽΈμ§€κ°€ λ„μ°©ν–ˆμ–΄μš”.")
.putData("message" ,wineyNotification.getMessage())
.setToken(wineyNotification.getToken())
.build();

// μš”μ²­μ— λŒ€ν•œ 응닡을 받을 response
String response;
try {
System.out.println("μ—¬κΉŒμ§€λŠ” μ™”λ‹€.");
// μ•Œλ¦Ό λ°œμ†‘
response = FirebaseMessaging.getInstance().send(message);
System.out.println(response);
Expand Down

0 comments on commit 7435e21

Please sign in to comment.