I have a problem that to handle FCM notification message.
I want to handle notification message without data fields.
So I've implement firebasemessagingservice in my project, but onMessageReceived function did not triggered.
Is it possible? Can I handle none data fields notification message in background state?
No, onMessageReceived
only gets triggered in the background when you have a data payload, see the documentation for details.
If you only have a notification field, it will land in the system tray and be handled by system, if you still want to handle the notification yourself, change the message payload to data and just include the related notification information and push out a notification yourself, for more details, see documentation.