White square icon in tool bar - android

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.

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

I want make an apk can set status bar color for all other app

I want make an apk can set status bar color for all other app. Mean I don't want other app change the status bar color. Ex: in gmail, status bar will have red color, but I want just black. Is it possible?
To be honest, what you are asking is difficult. I've only seen it done for rooted phones so you can probably go that route. Or you could look at an app such as Substratum which manages the skins of the android and it's apps, for ideas.
Start researching how to do this and ask for assistance on StackOverflow.

Push notification white square icon

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.

Unity3D Android - Overlap Status Bar

I am developing an app for Android and iOS in Unity3D.
The app on iOS looks like this picture from the web (The status bar is transculent and overlaps the actual app): http://www.appcoda.com/wp-content/uploads/2013/10/Dark-Navigation-Bar-Light-Status-Bar.jpg (I can't post images yet)
But when I run the app on Android, the status bar is drawn outside the app boundries. This means that the app gets stretched and it does not look satisfying: http://oi60.tinypic.com/2i1nvb8.jpg
Is it possible to make the Android status bar overlap the Unity3D app on Android? And if so, is it then possible to make it translucent as on iOS or at least a darker matching color (as introduced in Android 5.0.0)?
Best Regards,
Andreas B. Ostergaard.
Try this, it lets you decide when to display the menu and navigation bars. Also lets you color them.
http://zehfernando.com/2015/unity-tidbits-changing-the-visibility-of-androids-navigation-and-status-bars-and-implementing-immersive-mode/

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