Push Notifications icon displaying gray color

how to set push notification icon in android
notification icon not showing android oreo
android notification icon color
android push notification icon
android notification icon generator
android firebase push notification icon not showing
android 10 notification icon not showing
notification icon background color android

In my app Firebase push notification not displaying icon properly, It showing total gray color icon in notification. Code I using for implementing notifications

var notificationBuilder = new Notification.Builder(this)
.SetSmallIcon(Resource.Drawable.ic_launcherLmg)
.SetContentTitle(user.Organization)
.SetSubText(user.ModuleName)
.SetContentText(user.BodyText)
.SetAutoCancel(true)
.SetContentIntent(pendingIntent)
.Build();

Icon I am setting at SetSmallIcon(Resource.Drawable.ic_launcherLmg) line. ic_launcherLmg icon is available in below folders wtih given dimensoins

  1. drawable-idpi--36x36
  2. drawable-mdpi--48x48
  3. drawable-hdpi--72x72
  4. drawable-xhdpi--96x96

App targating Highest 8.1 API. Minimun 5.0 API.

Screenshot of push notification

Maybe your icon is not showing with background fcm push? So you need to put this inside application tag inside manifest as described here here:

<meta-data android:name="com.google.firebase.messaging.default_notification_icon"
    android:resource="@drawable/ic_launcherLmg" />

Android displays this custom default icon for all notification messages where the notification icon is not explicitly set.

Why is my smallIcon for Notifications always greyed out?, The system draws notification icons in white and action icons in dark gray.” All colors and non transparent pixels are displayed in white. On desktop, the action button icons display their colors (see the pink doughnut above). On Android Marshmallow, the icons are colored to match the system color scheme: Chrome will hopefully change it's behavior on desktop to match Android (i.e. apply the appropriate color scheme to make the icons match the system look and feel).

grey square as icon notification android · Issue #730 · zo0r/react , Hi! my notification works fine on android and ios but in some android devices icon with color while phones with android version 8.0 display a grey icon. push notifications, not the local scheduled background notifications. Correct color shows. Label is in the color specified as color, but the icon is white as shown in screenshot above. Other notifications do have colored icons. Looks like this changed with Android Oreo. Reproduce Scenario (including but not limited to) Receive push notification in background. Steps to Reproduce. Initialize plugin with color and

You can use

Use a mipmap icon instead of a drawable icon and put it in xxxhdpi-mipmap folder. The icon will automatically adjust its color if the background is white

or

Use notification icon as android version like

.SetSmallIcon(getNotificationIcon())

and the function is or change it as you want

private int getNotificationIcon() {
    boolean useWhiteIcon = (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP);
    return useWhiteIcon ? R.drawable.icon_silhouette : R.drawable.ic_launcher;
}

Push Notification, However during our tesst, we observed that the icon in the notification status bar was a grey/white square. See screenshot bel… Change Icon Type to Notification Icons. Your images must be white and transparent. This Configure Image Assets will enforce that rule. Important: If you want the icons to be used for cloud/push notifications, you must add the meta-data under your application tag to use the newly created notification icons. <application>

Fixed Push Notification Icon showing White Android, We just need to change the small icon and color for notification according to the OS versions like below code: Note: setColor is only available in Lollipop and it only  If you don't make a correct icon, it will most likely be displayed as a bell or solid white icon in the status bar. Large Notification Icons - The large notification icon will show up to the left of the notification text on Android 4.0.3 - 6.0 devices, and shows on the right for Android 7.0+ devices.

Fixing notification icon for Android Lollipop and above, Here's how you can fix notification icon for Android Lollipop and above. The system draws notification icons in white and action icons in dark gray.” Now this is easy to All colors and non transparent pixels are displayed in white. Let us go Push Notifications · Journeys · Flows · Funnels · RFM · Email  As you probably noticed, there is only a light grey background for custom notifications. But apps like Hangouts, or simply the USB Debugging notification has a custom color for their notification icon background.

Android Notification Icons, OneSignal is a Push Notification service for Web Push, iOS, Android, Chrome, Unity Android supports both Small and Large Notification Icons. icon, it will most likely be displayed as a bell or solid white icon in the status bar. If you prefer to create your own icons, you must make your icons the following size and colors:  On desktop the action button icons display their colors (See the pink doughtnut above). On Android Marshmallow the icons are colored to match the system color scheme: Chrome will hopefully change it’s behavior on desktop to match android (i.e. apply the appropriate color scheme to make the icons match the system look and feel).

Comments
  • icon still not showing on my notifications. What else is necessary?
  • this is a icon only, that is the reason i said change it as you want
  • in this case your icons is behave as well as android version
  • I tried your code but it didn't solve my problem. Thank you for answer.