Open rupakTj opened 2 months ago
Yes, I have used the same [https://search.maven.org/artifact/dev.gitlive/firebase-messaging/2.1.0/pom](Firebase Messaging library), but this lib only contains methods for fetching token, subscribe/unsubscribe topics.
But there is method to receive message. Am i missing anything?.
I am now not sure if I understood the question correctly.
What i meant is that you can obtain the native firebase messaging inside you iosMain (for example) by doing:
val messaging = Firebase.messaging.ios
// You can then proceed to handle the notifications as you would do in swift.
messaging.delegate = this
But this library (even in its native form) is not meant to receive notifications directly. You are just meant to register your app to receive notifications from Firebase. The receiving & displaying itself is handled by the respective os (that means in iosApp).
thanks @mr-kew for the guidance. Yes in the native layer it can be done,
but it would have been great for one stop solution if this library can provide the message receive part as well.
Firebase Messaging does not provide any method to receive the incoming message / notification.
Do not have any method like
override fun onMessageReceived(message: RemoteMessage)
provided byFirebaseMessagingService
Is there any other way to receive the messages/notifications.