I'm stuck on setting notification icon for my app. In my code I have both this:
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)
.setSmallIcon(R.mipmap.ic_launcher)
.setLargeIcon(BitmapFactory.decodeResource(context.getResources(),
R.drawable.ic_stat_ic_notification)).....
and this:
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_stat_ic_notification" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/colorAccent" />
So, when the app is open works correctly, I see the drawable image. But, when the app is in background or closed, I see a blank image. I suppose that this blank image is the gray version of my app icon.
Is it correctly? How can I set any image for the notification in case of the app is in background?
EDIT
How the notification appears: