Onesignal Notification Icon

Hi,

May I know where should I put the notification icon?

I’m using Cordova to develop my apps.

According to onesignal website : Android: Notification Icons, I need to put under

/platforms/android/app/src/main/res/drawable-mdpi/ (24x24)
/platforms/android/app/src/main/res/drawable-hdpi/ (36x36)
/platforms/android/app/src/main/res/drawable-xhdpi/ (48x48)
/platforms/android/app/src/main/res/drawable-xxhdpi/ (72x72)
/platforms/android/app/src/main/res/drawable-xxxhdpi/ (96x96)
/platforms/android/app/src/main/res/drawable-xxxhdpi/ (256x256) (Large Icon)

I have tried but is not working.

Please help.

Thanks

Your prompt reply is greatly appreciated.

Regards

Mr Goh

We’re not experts on Onesignal (or plugins in general), but I found this in the Onesignal docs:

Anyone have a better idea?

Hi i have tried this, but is not working as well.
Anyone can help?
Your help is greatly appreciated.

Thanks

Hi,
Anyone can help on this?
I’m out of idea what to do.

A user sent me this directly. I’ve asked him to post it here himself, but in the meantime…

Hello

the icon name should be ic_stat_onesignal_default.png and you should add the following on your config file

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

Cant. is not working either.
I have tried below this as well. Not working as well.

   <resource-file src="resources/android/notification/drawable-hdpi/ic_stat_onesignal_default.png" target="platforms/android/res/drawable-hdpi/ic_stat_onesignal_default.png" />
<resource-file src="resources/android/notification/drawable-mdpi/ic_stat_onesignal_default.png" target="platforms/android/res/drawable-mdpi/ic_stat_onesignal_default.png" />
<resource-file src="resources/android/notification/drawable-xhdpi/ic_stat_onesignal_default.png" target="platforms/android/res/drawable-xhdpi/ic_stat_onesignal_default.png" />
    <resource-file src="resources/android/notification/drawable-xxhdpi/ic_stat_onesignal_default.png" target="platforms/android/res/drawable-xxhdpi/ic_stat_onesignal_default.png" />
    <resource-file src="resources/android/notification/drawable-xxxhdpi/ic_stat_onesignal_default.png" target="platforms/android/res/drawable-xxxhdpi/ic_stat_onesignal_default.png" />

Hi, I already stuck here for weeks.
Can anyone help me on this?
Please…