title: Add a new notification when push notification is received (not replace the previous)
body: <p>I am using push notifications in my app. I need to display a notification when a push notification delivered. If I send another notification (without clearing the previous notification), it will replace the old notification.</p>
  <p>This is the code I use:</p>
  <pre><code>NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
  
  int icon = R.drawable.ic_launcher;
  CharSequence tickerText = &quot;New notification Pending&quot;;
  long time = System.currentTimeMillis();
  
  Notification notification = new Notification(icon, tickerText, time);
  notification.flags = Notification.DEFAULT_LIGHTS | Notification.FLAG_AUTO_CANCEL;
  
  // Context context = getApplicationContext();
  CharSequence contentTitle = &quot;Notifications&quot;;
  CharSequence contentText = newMessage;
  Intent notificationIntent = new Intent(this, LoginActivity.class);
  PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
          notificationIntent, 0);
  notification.setLatestEventInfo(context, contentTitle, contentText,
          contentIntent);
  mNotificationManager.notify(1, notification);
  </code></pre>
  <p>But I don't want to replace the notification, I want to add it as a new notification.</p>