This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
iconColor does not set icon background on Android #146
Comments
kwebble
changed the title
setColor does not set icon background on Android
iconColor does not set icon background on Android
Sep 16, 2015
Perhaps, I'm not 100% sure, this only sets the color once, when registering. I changed the software that creates the notifications to include a color property with each notification. |
FYI, the iconColor only applies to android Lollipop (5.0, sdk=21) and newer. Older versions will use their default theme for notifications unless you create it yourself. |
@kwebble Yeah, this will only set the background color on Android 5.0 and greater. I'll update the README to make it more explicit. |
macdonst
added a commit
that referenced
this issue
Sep 17, 2015
This thread has been automatically locked. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To set the background color for the notification icon on Android I have set iconColor like this:
I have tried color values like 'red', 'blue' and #RRGGBB values, but in a notification the result is always the default gray color.
Is there something else required to set the background color of the icon?
I'm using version 1.2.3 of PushPlugin with Cordova 5.1.1.
The text was updated successfully, but these errors were encountered: