Skip to content

Commit

Permalink
[fix] FCM deprecated method 변경 (#147)
Browse files Browse the repository at this point in the history
* [fix] #146 update firebase version in build.gradle

* [fix] #146 replace method due to method deprecated
  • Loading branch information
chaewonni authored Sep 10, 2024
1 parent 6090ce6 commit a32823c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ dependencies {
implementation("software.amazon.awssdk:s3:2.21.0")

// Firebase
implementation 'com.google.firebase:firebase-admin:9.2.0'
implementation 'com.google.firebase:firebase-admin:9.3.0'

// Logback Discord Appender
implementation('com.github.napstr:logback-discord-appender:1.0.0')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void sendBulk(
){
MulticastMessage message = createBulkMessage(fcmTokens, fcmMessageDto);
try {
FirebaseMessaging.getInstance().sendMulticast(message);
FirebaseMessaging.getInstance().sendEachForMulticast(message);
} catch (FirebaseMessagingException e){
throw new FirebaseException(FirebaseErrorCode.FCM_ERROR);
}
Expand Down

0 comments on commit a32823c

Please sign in to comment.