Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
109 stars 139 forks source link

Notification icon doesn't change color on Android 6.0 #319

Closed lingros13 closed 4 years ago

lingros13 commented 4 years ago

Hello,

I have custom icon in res/drawable/pw_notification.png and it works, but on some Android devices the icon doesn't change color according to background color, so when the background is light, the icon isn't visible (my icon is the house next to a clock): light_background

The problem is specifically on Huawei Redmi 3S with Android 6.0.1. I've tested on another Android with 6.0 (some Prestigio phone) and it works fine, it works on Samsung S4 with Android 7 (custom ROM) as well.

I suspect there is a problem with MIUI firmware. Or is the icon bad? My pw_notification.png is there: pw_notification

wfhm commented 4 years ago

Hi @lingros13,

Yes, it seems that this behaviour is caused by the MIUI firmware since on other devices this functionality works correctly. I can say that unfortunately similar issues and bugs are quite common for custom launchers from Chinese OEMs. Please note that the manufacturer's custom launcher is beyond Pushwoosh SDK control.

lingros13 commented 4 years ago

But applications not build with cordova (or maybe not using PushWoosh) don't have this issue - you can see e. g. Zoiper in the screenshot above (the icon next to mine) - its icon is fine.

wfhm commented 4 years ago

@lingros13,

Could you please specify the resolution of the icon you are using for notifications(res/drawable/)?

lingros13 commented 4 years ago

The resolution is 96 x 96 px, is it bad? I've attached the icon to my first post.