I understand that Firebase Cloud Messaging facilitates sends push notifications and data messages. I am using firebase_messaging pub from Flutter to receive the notifications in my device. The onMessage, onLaunch, and onResume callbacks are invoked only once the notification is dismissed or clicked on.
However, I would like to access the message received, regardless of whether the notification is dismissed or not. Is there a way to do this, regardless whether the app is in foreground, background or terminated ?