Android 10 MediaStyle Notification Seek Bar is Black - android

The MediaStyle Notification introduced in Android 10 works but is however black and doesn't display duration either.
Here is a link to the code: https://github.com/ryanheise/audio_service/blob/master/android/src/main/java/com/ryanheise/audioservice/AudioService.java
Reference another question: android 10 seek bar on notification
This only appears to happen to certain devices where on other devices the seek bar will display perfectly fine.
Additionally on the same device other media players have perfectly fine displaying seek bars, such as Youtube, Youtube Red, Google Play Music, etc.

I followed the hints reported in this bug report and I solved the problem. I successfully tested it on Samsung and Huawei devices with Android 10.
The trick is:
As per Google's Material Design guidelines, the small icon in the
notification should be monochrome white, and have a transparent
background. If you follow those guidelines, the slider displays
correctly.
Some people report also that you have to set a non transparent color (like Color.BLACK) using setColor() method to make it work on some devices.

Related

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.

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.

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

Notification Icon on HoneyComb is Too Dim

I have an Android app that uses the NotificationManager to inform the user of certain events. When I call .notify(), the icon I specify is shown in the status bar. It works fine on various Android 2.2 and 2.3 phones. But on a Galaxy Tab 10.1 running Android 3.1 the notification icon on the status bar is so dim it can barely be seen. I've seen one other app that has a similar problem, but all the other apps I'm using that do notifications look OK. I've followed the Guidelines at http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html, including creating Android 2.3+ style icons and putting them in the drawable-hdpi-v9, drawable-mdpi-v9, etc. folders. The icons all look OK when I look at them on my development machine; they are the right colors and are not dim. What could I be doing wrong that is causing my notification icon to be shown so dim on the Honeycomb status bar?
As of today there is updated documentation available at the android developers web site:
http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html

Categories

Resources