title: Notification icon is not showing in android when we receive notification from firebase
body: <p><a href="https://i.stack.imgur.com/zat0l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zat0l.png" alt="enter image description here" /></a></p>
  <p>This is my Notification which i am receive notification from firebase.</p>
  <p>this below code i have used to receive notification from firebase:</p>
  <pre><code>public class FirebaseMessageReceiver
          extends FirebaseMessagingService {
      Bitmap bitmap;
  
      @Override
      public void onMessageReceived(RemoteMessage remoteMessage) {
          if (remoteMessage.getNotification().getImageUrl() != null) {
              String imageUri = remoteMessage.getNotification().getImageUrl().toString();
              bitmap = getBitmapfromUrl(imageUri);
              sendNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody(), bitmap);
          } else {
              sendNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody(), null);
  
          }
      }
  
      private void sendNotification(String messageTitle, String messageBody, Bitmap image) {
          NotificationManager mNotificationManager;
  
          NotificationCompat.Builder mBuilder =
                  new NotificationCompat.Builder(this, &quot;notify_001&quot;);
          Intent ii = new Intent(this, NotificationActivity.class);
          PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, ii, PendingIntent.FLAG_MUTABLE);
          NotificationCompat.BigTextStyle bigText = new NotificationCompat.BigTextStyle();
          bigText.bigText(&quot;&quot;);
          bigText.setBigContentTitle(messageTitle);
          mBuilder.setContentIntent(pendingIntent);
          mBuilder.setAutoCancel(true);
          if (android.os.Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.LOLLIPOP) {
              mBuilder.setSmallIcon(R.drawable.icon_transperent);
              mBuilder.setColor(getResources().getColor(R.color.full_transperent));
          } else {
              mBuilder.setSmallIcon(R.mipmap.ic_launcher_round);
          }
          if (image != null) {
              mBuilder.setLargeIcon(image);
          }
          mBuilder.setContentText(messageBody);
          mBuilder.setPriority(Notification.PRIORITY_MAX);
          mBuilder.setStyle(bigText);
          mNotificationManager =
                  (NotificationManager) this.getSystemService(Context.NOTIFICATION_SERVICE);
  
          if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.O) {
              String channelId = &quot;Your_channel_id&quot;;
              NotificationChannel channel = new NotificationChannel(
                      channelId,
                      &quot;Channel human readable title&quot;,
                      NotificationManager.IMPORTANCE_HIGH);
              mNotificationManager.createNotificationChannel(channel);
              mBuilder.setChannelId(channelId);
          }
  
          mNotificationManager.notify(0, mBuilder.build());
      }
  
      /*
       *To get a Bitmap image from the URL received
       * */
      public Bitmap getBitmapfromUrl(String imageUrl) {
          try {
              URL url = new URL(imageUrl);
              HttpURLConnection connection = (HttpURLConnection) url.openConnection();
              connection.setDoInput(true);
              connection.connect();
              InputStream input = connection.getInputStream();
              Bitmap bitmap = BitmapFactory.decodeStream(input);
              return bitmap;
  
          } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
              return null;
  
          }
      }
  }
  </code></pre>
  <p>I don't know what i am doing mistake but i am getting notification from Firebase but i am unable to see icon its showing rounded black icon please help me  how we can show icon in notification section when i receive notification .</p>