I am successfully implement the push notification in cordova using this push plugin.
Everything works correctly, but the problem if multiple notifications are received only latest notification is available. I already referred this answer, but it uses older plugin.
Here is the code what i tried from the answer.
int notId=0;
try {
notId = Integer.parseInt(extras.getString("notId"));
}
catch(NumberFormatException e) {
Log.e(TAG, "Number format exception - Error parsing Notification ID: " + e.getMessage());
}
catch(Exception e) {
Log.e(TAG, "Number format exception - Error parsing Notification ID" + e.getMessage());
}
notId++;
mNotificationManager.notify((String) appName, notId, mBuilder.build());