Push Notification Icon Color Issue in .NET MAUI Local Notifications

Omkar Pawar 235 Reputation points
2025-05-19T18:33:04.48+00:00

I have implemented push notifications using LocalPushNotification in my .NET MAUI app. I'm setting the small icon using:

.SetSmallIcon(Resource.Drawable.ic_push_notification_solid)

The issue is that the icon is displayed in gray instead of its original color (yellow). My icon file (ic_push_notification_solid.png) has a yellow color, but when the notification appears, it turns gray.
ic_push_notification_solid

Here’s an example:

  • Expected:
    want_img

Actual:
error_img

How can I prevent the system from tinting the icon to gray and show the original color?
Here is my sample project repository for reference: https://github.com/IX-OmkarP/IconColorIssue

Thanks!

Developer technologies .NET .NET MAUI
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.