This is a migrated thread and some comments may be shown as answers.

Android custom notification icon

1 Answer 84 Views
Push Notifications
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vincenzo
Top achievements
Rank 1
Vincenzo asked on 26 May 2015, 06:38 AM

Push notifications are working well for my Android app, but I need to set a custom notification icon, because it is supposed to be monochrome and different from the app icon.

I know that the Telerik plugin searches for a ic_stat_notify.png called image, but I don't understood where to place it in my Cordova project to get it included it in the Android bundle. Can you give me any advice? I'm mainly a web developer so things like these let me really struggle.

1 Answer, 1 is accepted

Sort by
0
Evgeni Boevski
Telerik team
answered on 26 May 2015, 08:34 AM
Hi Vincenzo,

You are right, ic_stat_notify.png sets the small notification icon that appears in the status bar.

The short answer to your question about its whereabouts is platforms/android/res/drawable* (platforms/android/res/drawable-hdpi, platforms/android/res/drawable-ldpi, and so on). Ideally, you would have a different icon size for each DPI but it will work even if you only have a single icon file in any of the aforementioned folders. For best results, I recommend reading the Google developer guidelines.

However, I strongly urge you to read our documentation article on this topic. It provides plenty of helpful information such as how to use a custom file name for your icon, how to set the large notification icon, where to place the icon file if you are using AppBuilder, and so on.


Regards,
Evgeni Boevski
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
Push Notifications
Asked by
Vincenzo
Top achievements
Rank 1
Answers by
Evgeni Boevski
Telerik team
Share this question
or