I am develop a simple a welcome android app of one signal notification ..one signal notification shows a bell icon but i want to replace that bell icon and show that my app icon ....so please guide for this
Asked
Active
Viewed 1,226 times
1 Answers
1
Answer- Android: OneSignal how to change Notification bill icon with custom icon or app icon?
You need to create an icon named ic_stat_onesignal_default
in your drawable
directory which will be shown instead of OneSignal's default bell icon. It is recommended to use the Android Asset Studio to create the correct sizes and to make sure it will look correct before trying it on your device.
Note the app icon should no longer be used as a small notification icon as in Android 5.0 Lollipop the icon's alpha will only be used. Most app icons will just be a white squire or circle in this case.
See OneSignal's documentation page below for more details. https://documentation.onesignal.com/docs/customize-notification-icons

Moklesur Rahman
- 543
- 6
- 12
-
Sir when i am create that ic_stat_onesignal_default it will give me error ...in my android drawable folder this solution not working... – Pratiksha Jun 09 '21 at 06:54
-
Create the same image icon for different sizes: mdpi, hdpi, xhdpi, xxhpi called: ic_stat_one_signal_default – Moklesur Rahman Jun 09 '21 at 07:01
-
what should be the extension .png or .xml – Pratiksha Jun 09 '21 at 07:03
-
ic_stat_one_signal_default.png – Moklesur Rahman Jun 09 '21 at 07:04
-
not working sir any changes required for one signal side – Pratiksha Jun 09 '21 at 07:44
-
see here https://documentation.onesignal.com/docs/customize-notification-icons – Moklesur Rahman Jun 09 '21 at 07:54
-
can we put it in mipmap folder rather than drawable? – Stuti Kasliwal Sep 28 '22 at 06:45