Push Notification Icon Color Issue in .NET MAUI Local Notifications
Omkar Pawar
235
Reputation points
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.
Here’s an example:
- Expected:
Actual:
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
4,152 questions
Sign in to answer