Push notification white square icon - android

I'm using pushwoosh for push notification service.
according to the Android documentation I've used a white icon for notification.
but on some devices, I see white square again.
on other hand,s I've used a colored icon and I see the colored notification.
why on some devices I can use a colored icon, and on other, I always see the white icon?

Depending on the OS version it happens.You may have observed it is only happening in low version of OS's like jellybean,kitkat.
I don't think this will happen in lollipop or marshmallow and above OS versions.

You should follow the Guidelines for icon designing, otherwise it will be in white box for some Android versions. You can look here https://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar. Based on this you should use .png image and only white and grey color for icons.

Related

How can i set my app icon to one signal notification using android studio 4.2.1 programatically

I am develop a simple a welcome android app of one signal notification ..one signal notification shows a bell icon but i want to replace that bell icon and show that my app icon ....so please guide for this
Answer- Android: OneSignal how to change Notification bill icon with custom icon or app icon?
You need to create an icon named ic_stat_onesignal_default in your drawable directory which will be shown instead of OneSignal's default bell icon. It is recommended to use the Android Asset Studio to create the correct sizes and to make sure it will look correct before trying it on your device.
Note the app icon should no longer be used as a small notification icon as in Android 5.0 Lollipop the icon's alpha will only be used. Most app icons will just be a white squire or circle in this case.
See OneSignal's documentation page below for more details. https://documentation.onesignal.com/docs/customize-notification-icons

Notification icon is greyed out sometimes but works sometime

I am working on an Android application in which I face an issue in Android push notification icon.
The notification icon does not display its content instead displaying in grey colour.
After the research, I could understand that there is a change required in icon for adding transparent and/or white backgrounds since the Android version 5.0
But, my problem now is that I am unable to strongly convey my client about this issue as he shared a screenshot of his Realme X2 Pro device.
It seems that sometimes the device displays in right manner but sometimes not. Please help me find out the solution.

Notification small icon color not changing Pushwoosh Android SDK

I am using Pushwoosh Android SDK for push notification,
I am facing issue with the small icon color when expanding the notification bar, it should be in dark color, check screenshot with the affected devices with Android 7.0, and it's working fine on other devices
please advise,
For those who will come here with the same problem.
I met this issue when used one big icon for all screen sizes, the problem disappeared when i added to project smaller icons for different screen sizes. May be the problem is the system not able to handle too big icon.

White square icon in tool bar

I read in almost every question that I have to make the app icon transparent, and I did that. However, It still shows up as a white square, but when I pull the notification menu down i see the notification in colors.
At this point, I made separate icons that I designed differently and added them under drawable folders. How do I add them to be used by the push notifications when received?
Extremely confused about this topic. Note: I am using React-Native to build this android app.
That's how it is supposed to behave after Lollipop I believe.
In the status bar the icon is just a white tinted version of your icon. When you pull the notification bar, it shows normally.
You need to use a notification icon with just the logo, with no solid background.
Check What's App's icon for example to see what I mean.

Background for notification icons

I am trying to figure out why different icons in the notification area have different backgrounds.
Please see attached screenshot. 'USB debugging conencted' has a solid color background, but other two notification icons don't have the same greenish background. In my app, notifications generated from two different places similarly have different backgrounds. And.. the icons used are similar - there's no solid vs transparent difference in them, the code is standard and simple - setSmallIcon(). As such, there's no indication why system would treat the icons differently.
This is a very fine detail, and I haven't been able to find any answers anywhere else. I have finally turned to the experts here. Does anyone have any idea?
This is based on Notification priority. Notifications with PRIORITY_MIN have the 'dark' background like 'Time to Work' notification in the screenshot. Those with PRIORITY_HIGH (and I think PRIORITY_MAX too) have the greenish background.

Categories

Resources