Can I override default push notification icon in android from app icon to custom icon?
I am using default firebase implementation to display notification in system tray,
Builder
class for Notification
objects. Provides a convenient way to set the various fields of a Notification and generate content views using the platform's notification layout template. Check Official Documentation here
Notification noti = new Notification.Builder(mContext)
.setContentTitle("New mail from " + sender.toString())
.setContentText(subject)
.setSmallIcon(R.drawable.new_mail)
.setLargeIcon(aBitmap)
.build();
Here you can set custom fields including Icon for your notifications.
Cheers! Happy Coding