John
1
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
ghenne
2
We’re not experts on Onesignal (or plugins in general), but I found this in the Onesignal docs:
Anyone have a better idea?
John
3
Hi i have tried this, but is not working as well.
Anyone can help?
Your help is greatly appreciated.
Thanks
John
4
Hi,
Anyone can help on this?
I’m out of idea what to do.
ghenne
5
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" />
John
6
Cant. is not working either.
I have tried below this as well. Not working as well.
John
8
<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" />
John
9
Hi, I already stuck here for weeks.
Can anyone help me on this?
Please…