I have an issue regarding the Notification with android 9, Notification icon is not showing with Android 9. I have use below code for show the icon with notification.
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
notificationBuilder.setSmallIcon(R.drawable.ic_notify);
/* Bitmap icon = BitmapFactory.decodeResource(context.getResources(), R.drawable.ic_notify);
notificationBuilder.setLargeIcon(icon);*/
notificationBuilder.setColor(getResources().getColor(R.color.colorWhite));
} else {
notificationBuilder.setSmallIcon(R.drawable.ic_notify);
}