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
Replace your line with this.
notificationManager.notify((int) ((new Date().getTime() / 1000L) % Integer.MAX_VALUE), notification);