rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
179 stars 161 forks source link

Possibility to set the background color of the small notification icon #50

Open Knordy opened 8 years ago

Knordy commented 8 years ago

When using an android:targetSdkVersion >= 21 the small icon of a notification is limited in design: 'For 5.0 Lollipop "Notification icons must be entirely white".' When a notification icon is to colorful if will be defaulted to a white square with a grey circle as background.

default small icon

For now it is possible to create a white small icon that will be used in the status bar, as well as the small icon, but it is not possible to set the background color.

In the builder add this to set the background color: builder.setColor(color), which will only affect the small icon background in the notification center.

A workaround to keep a colored notification icon is to set the android:targetSdkVersion to <21

MartinGian commented 6 years ago

Hey @Knordy , I have the exactly same issue, could you solve it? Thanks

Knordy commented 6 years ago

@MartinGian we haven't solved it as it has little priority for us at the moment. But it would be nice if a solution is made in the package.