mo-ah-dawood / fcm_config

10 stars 12 forks source link

Add notification color when displaying notification #8

Closed Reprevise closed 3 years ago

Reprevise commented 3 years ago

The AndroidNotificationDetails class has support for a color property which should be exposed so the developer can edit the color of the notification in the tray.

mo-ah-dawood commented 3 years ago

3.0.8

Reprevise commented 3 years ago

How does the developer change the color of the notification?

mo-ah-dawood commented 3 years ago

Backend can send color property color : #ff0000 as described here

mo-ah-dawood commented 3 years ago
Screen Shot 2021-08-03 at 8 43 07 PM
Reprevise commented 3 years ago

The color property should also be added to the displayNotification method.

mo-ah-dawood commented 3 years ago

there is a method called displayNotificationWith you can use it

mo-ah-dawood commented 3 years ago

FCMConfig.instance.displayNotificationWith