You need to pass different notification id
for each Notification
. If you pass same id (i.e., 0 in your case), the existed notification
will be updated with the new data
So change this:
notificationManager.notify(0, notification);
to , e.g., Set some unique id int notificationId = 0x10;
notificationManager.notify(++notificationId, notification);
ID - If a notification with the same id has already been posted by your application and has not yet been canceled, it will be replaced by the updated information.