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
A simple counter may solve your problem.
private Integer notificationId = 0; private Integer incrementNotificationId() { return notificationId++; } NotificationManager.notify(incrementNotificationId, notification);