Notification icon is greyed out sometimes but works sometime - android

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.

Related

Why Android Studio keeps showing a blue screen or getting stuck at previous changes of the app I'm developing?

Android studio is getting stuck constantly and updating or restarting pc is not helping. Sometimes the emulator would show a previous change that was made to the app, while others it would display a blue screen showing that something went wrong without showing more details. I think is not the Wi-Fi connection because I've tried it even within my university campus and the problem keeps appearing.
When these problems are showing but the blue screen is not showing, I'd notice that neither the buttons of the android emulated nor the changes made to the app would be displayed. Sometimes Android SDK and Expo would work properly without my intervention.
Can someone please illustrate me? This is interfering with my app development without it being a direct problem of my app.
Photo of the blue screen
Description of the blue screen
Also, I already searched on StackOverflow and reddit, but I don't find a current answer for this problem.

Push Notification in TWA shows an indicator in Chrome Icon instead app icon

I am building a Trusted Web Activity based on a Progressive Web App. Mostly everything works just fine, but the moment a web push notification is received by the device, in the android launcher the chrome app gets an indicator (small dot on the icon) instead of the actual TWA. I am using a virtual device from Android Studio (Android API 30) for testing this. I expected the indicator on the app icon instead of the Chrome icon. After clicking on the indicator the dot on the chrome icon disappears.
Screenshot of Android with indicator on Chrome icon
The first try was that I built it based on the svgomg-twa example and now I tried to create the TWA with bubblewrap explained here. Both options result in the same behavior like explained before.
I am happy to provide further details, but I am missing the starting point what could be responsable for this indicator behavior. So please just let me know if you need some more information.
I would be very happy if you could give me a starting point to figure this out.
Thanks in advance,
Matthias

Notification icons are cut in half in SystemUI with status bar padding (Android Pie)

I'm trying to solve a problem with SystemUI's dimens.xml on my Pie-based ROM (it happens on stock as well).
Currently, when a notification arrives, it looks like
this (the notification icon is basically cropped from the left side).
The only thing that solves it is reducing rounded_corner_content_padding and status_bar_padding_start in SystemUI's dimens.xml. However, this also pushes the status bar edges way too close to the screen borders, which doesn't look pretty.
Is it possible to get rid of this part of the notification altogether? It seems redundant considering there are heads-up notifications already.
I've also stumped upon this problem recently. After digging through the frameworks/base source code, I believe that it is a bug in the AOSP upstream, that rounded_corner_content_padding is not accounted for in HeadsUpStatusBarView, causing the layout function to behave incorrectly. I've tried to fix this and submitted a patch to AOSP,
https://android-review.googlesource.com/c/platform/frameworks/base/+/964275
where you can find a more detailed description and download the patch to apply to your own ROM.
Of course, I am not sure whether this is really a bug in AOSP or just a problem on my side -- this has to be reviewed by the AOSP development team.

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.

Not showing push notification icon in the top bar when using parse on emulator

Im using parse to send push notifications, The problem is that when I send push notifications the top bar in the emulator shows only a white square and not the icon, when I get the notification on the real device, samsung s6, samsung nexus, this is working great(I have tested only on this two devices).
any ideas?
Due to the new design changes introduced in Android 5.0, you need to use to the notifications only white icons. You can read more about it here: https://developer.android.com/design/patterns/notifications.html#guidelines
The system will automatically convert your icons to white. My suggestion is to you create white notification icons.
You can find more information about it here: https://stackoverflow.com/a/29207365/3482000

Categories

Resources