Push notification icon is showing the wrong color

Background color isn't set for a monochrome icon

The notification icon appears in an unexpected color because no background color has been configured for a monochrome icon.

How to check

First, confirm you're using a monochrome icon:

  • Flat color — if the icon is a single color (e.g., all white), it's monochrome.
  • Vector (XML) — open the drawable XML file and verify it uses only one color throughout.

Then check whether mindbox_default_notification_color is defined in res/values/colors.xml. This resource controls the icon background color and is available starting from SDK v2.10.0.

How to fix

To set or update the icon background color, define mindbox_default_notification_color in res/values/colors.xml.

For example, this sets the icon color to red:

<color name="mindbox_default_notification_color">#FF0000</color>
📘

Note

Icon background color customization is supported starting from SDK v2.10.0. Make sure you're on a compatible version before applying this fix.