Closed jcarignan closed 4 years ago
Push notifications are displayed by the OS, not by Capacitor.
You can configure a default color like this <meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@color/your_color" />
, but not change it per notification more info
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Feature Request
Describe the Feature Request
Now that we can change the small icon's color for LocalNotifications, can we get the same for PushNotifications? I use both so it looks weird that some of my notifications are colored and some aren't.
Platform Support Requested
Describe Preferred Solution
Add the "iconColor" key of plugins.PushNotifications in capacitor.config.json
Describe Alternatives
Would love to know if there are
Related Code
"plugins": {
"PushNotifications": {
"smallIcon": "ic_notification",
"iconColor": "#009FE3"// here
},
"LocalNotifications": {
"smallIcon": "ic_notification",
"iconColor": "#009FE3"
}
}
Additional Context