ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.04k stars 999 forks source link

feat: [Android] Add iconColor to PushNotifications in capacitor.config.json #2720

Closed jcarignan closed 4 years ago

jcarignan commented 4 years ago

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

Screenshot_20200407-135214

jcesarmobile commented 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

ionitron-bot[bot] commented 1 year ago

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.