I'm doing push notifications for Android using Firebase Cloud Messaging, and everything is going well, but I'm wondering what's going on with the icon color in the system tray. It is being turned into a greyscale image instead of keeping its original color. I am able to colorize it with the setColor
method, but I'd like the icon to not lose its color at all, is this possible? I have tried using a variety of different images with their own sizes, transparent/non-transparent, white background etc., based on some posts I could find. I could not seem to locate an answer on what is actually happening here. My compile/target sdk is 26 at the moment. I'm using Android 8.0 and 9.0 on emulators (Nexus 6), and 8.1 on a physical device.
.setSmallIcon(R.drawable.app_logo)
.setColor(Color.GREEN)