Currently, I'm using firebase push notification for notification. I have implemented the onMessageReceived()
method using FirebaseMessagingService
. When in foreground state, the onMessageReceived()
method for notifications is triggered, but when the app is in the background state, onMessageReceived()
is not called.
I'm not getting any type of data that I might have set on the server. I have done some R&D, but all the solutions show some handleIntent()
for the specific library or some solution for using getIntent()
and I'm using the Firebase library version above 17.3.4.
Could anyone show me the right way to use Firebase notification when the app is in background state and killed state?