Foreground notification
In this thread there was also question about n2.Icon = "notification" icon. So I followed instructions and put notification.png into folder icon/drawable.
But when I recieved notification and app was on foreground There was crash that icon cannot be found.
When I moved icon info res/drawable/ and made it read only it started working ... - What am I doing wrong ?
Background or app not started notification
There is no icon at all - just white square inside blue icon object. What am I doing wrong ?
<!-- Set custom default icon. This is used when no icon is set for incoming notification messages.
See README(https://goo.gl/l4GJaQ) for more. -->
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_stat_ic_notification" />