Is it possible to not use smallIcon when sending notification. Right now it shows a small empty squara under the notification icon, on notification bar? Any idea?
+1, same issue
+1, same issu. Tried adding ic_notification.png in res but no luck.
@cubbuk @vitorhorta I've found the solution for this. Basically, you just need to put in transparent (no color) ic_notification.png in mipmap folders. It's important that it's completely transparent with no color. Otherwise, it won't work.
Solution: https://blog.clevertap.com/fixing-notification-icon-for-android-lollipop-and-above/
ic_notification.png size guide: http://iconhandbook.co.uk/reference/chart/android/
When I use transparent icon I start seeing gray icon, is there any way to totally remove that small icon? But thanks for the guides these were useful
You can set empty string to largeIcon parameter, and notification will use smallIcon as a large, but it will be no color. To change tint color may be used color option.
This fix didn't end up being a good fit for me, but I thought I'd save anyone else who ends up here the time to create transparent pngs in various sizes. Image is below the size label.
22x22

33x33

44x44

66x66

just use this tool and generate the icons and in the correct folder..
https://romannurik.github.io/AndroidAssetStudio/index.html
How to get large icon when app is in background?
Most helpful comment
@cubbuk @vitorhorta I've found the solution for this. Basically, you just need to put in transparent (no color) ic_notification.png in mipmap folders. It's important that it's completely transparent with no color. Otherwise, it won't work.
Solution: https://blog.clevertap.com/fixing-notification-icon-for-android-lollipop-and-above/
ic_notification.png size guide: http://iconhandbook.co.uk/reference/chart/android/