Skip to content

Commit

Permalink
Small update for firebase notifications'
Browse files Browse the repository at this point in the history
  • Loading branch information
shanelk committed Sep 18, 2024
1 parent fe430ab commit c659dd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ buildscript {
google()
mavenCentral()
}

dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.7.10")
Expand Down
2 changes: 1 addition & 1 deletion server-firebase/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ val khrysalisVersion: String by project
dependencies {
api(project(":server-core"))

api("com.google.firebase:firebase-admin:9.1.1")
api("com.google.firebase:firebase-admin:9.3.0")

ksp(project(":processor"))
kspTest(project(":processor"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import kotlinx.coroutines.withContext
import java.io.File
import com.google.firebase.messaging.Notification as FCMNotification


/**
* The concrete implementation of NotificationClient that will use Firebase Messaging to send push notifications to
* clients.
Expand Down Expand Up @@ -144,7 +143,7 @@ object FcmNotificationClient : NotificationClient {
}
.forEach {
withContext(Dispatchers.IO) {
FirebaseMessaging.getInstance().sendMulticast(it)
FirebaseMessaging.getInstance().sendEachForMulticast(it)
}
}

Expand Down

0 comments on commit c659dd6

Please sign in to comment.