File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
firebase-messaging/src/jsMain/kotlin/dev/gitlive/firebase/messaging Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ actual class FirebaseMessaging(val js: Messaging) {
13
13
actual fun subscribeToTopic (topic : String ) {
14
14
// This is not supported in the JS SDK
15
15
// https://firebase.google.com/docs/reference/js/messaging_.md#@firebase/messaging
16
+ throw NotImplementedError (" Subscribing to topics is not supported in the JS SDK" )
16
17
}
17
18
18
19
actual fun unsubscribeFromTopic (topic : String ) {
19
20
// This is not supported in the JS SDK
20
21
// https://firebase.google.com/docs/reference/js/messaging_.md#@firebase/messaging
22
+ throw NotImplementedError (" Unsubscribing from topics is not supported in the JS SDK" )
21
23
}
22
24
23
25
actual suspend fun getToken (): String = dev.gitlive.firebase.messaging.externals.getToken(js).await()
You can’t perform that action at this time.
0 commit comments