When I trigger a push notification then the old one is replaced by new one. But I want it should add to that old notification.
My MyFirebaseMessaging class is:
new push notification is replaced the old one in firebase push notification in my application,How i will stop this
You need to pas different notificationID
in notificationManager.notify()
SAMPLE CODE
Date myDate = new Date();
int myNotificationId = Integer.parseInt(new SimpleDateFormat("ddhhmmss", Locale.US).format(myDate));
notificationManager.notify(myNotificationId,notificationBuilder.build());