How to change the background color of push notification with Ionic 3

0

How do I change the background color of push notification? I'm using Ionic 3 Cordova 7 and One Signal.

Inthisexample,noticethatthewhatsappbackgroundcolorisgreen,theemailcolorisred.Iwouldliketochangethecolorofmyappfromgraytoblack.

Inconfig.xmlI'veaddedthesetags:

<resource-filesrc="platforms/android/onesignal/res/drawable-ldpi/ic_stat_onesignal_default.png" target="app/src/main/res/drawable-ldpi/ic_stat_onesignal_default.png" />
<resource-file src="platforms/android/onesignal/res/drawable-mdpi/ic_stat_onesignal_default.png" target="app/src/main/res/drawable-mdpi/ic_stat_onesignal_default.png" />
<resource-file src="platforms/android/onesignal/res/drawable-hdpi/ic_stat_onesignal_default.png" target="app/src/main/res/drawable-hdpi/ic_stat_onesignal_default.png" />
<resource-file src="platforms/android/onesignal/res/drawable-xhdpi/ic_stat_onesignal_default.png" target="app/src/main/res/drawable-xhdpi/ic_stat_onesignal_default.png" />
<resource-file src="platforms/android/onesignal/res/drawable-xxhdpi/ic_stat_onesignal_default.png" target="app/src/main/res/drawable-xxhdpi/ic_stat_onesignal_default.png" />
<resource-file src="platforms/android/onesignal/res/drawable-xxxhdpi/ic_stat_onesignal_default.png" target="app/src/main/res/drawable-xxxhdpi/ic_stat_onesignal_default.png" />

And in colors.xml I've changed

<color name="primary">#FFFFFF00</color>
<color name="primary_dark">#FF220022</color>
<color name="accent">#FF00FFFF</color>

for

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <color name="onesignal_bgimage_notif_title_color">#000000</color>
  <color name="onesignal_bgimage_notif_body_color">#FFFF00</color>
</resources>
    
asked by anonymous 10.04.2018 / 15:50

0 answers