android – Firebase Push Notification not received when flutter app in foreground?-ThrowExceptions

Exception or error:

I am using firebase_messaging for firebase push notifications. I received push notifications when app in background or app is forcefully closed but not received when app in foreground.

And Second issue is push notification show without app icon. Its shows blank square icon.

How to solve:

firebase doesn’t show push notifications when the app in foreground, So we need to configure the local notification for Firebase

Check this package

Library for Local Notification

Leave a Reply

Your email address will not be published. Required fields are marked *