When I send multiple push notifications, I need them to be all shown in the notification bar ordered by the time sent desc. I know I should use unique notification - I tried
For anyone still looking around. I generated a timestamp and used it as the id.
import java.util.Date;
import java.util.Locale;
public int createID(){
Date now = new Date();
int id = Integer.parseInt(new SimpleDateFormat("ddHHmmss", Locale.US).format(now));
return id;
}
Use it like so
int id = createID();
mNotifyManager.notify(id, mBuilder.build());