React-native-push-notification: Android notification without small icon

Created on 16 Jun 2016  路  8Comments  路  Source: zo0r/react-native-push-notification

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?

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/

All 8 comments

+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
ic_notification
33x33
ic_notification
44x44
ic_notification
66x66
ic_notification

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?

Was this page helpful?
0 / 5 - 0 ratings