I am receiving only one notification and if there comes another notification, it replaces the previous one and here is my code
private static void generateNo
notificationManager.notify(0, notification);
Put this code instead of 0
new Random().nextInt()
Like below it works for me
notificationManager.notify(new Random().nextInt(), notification);