I am really lost here. Is there any scenario where a notification icon in statusbar is hidden but still the notification is present in drawer? This happens when appending incoming messages to the notification after replying to the already existing notification.
I use :
NotificationCompat.MessagingStyle.extractMessagingStyleFromNotification();
Everything works fine but the notification icon goes to hiding. I also use
NotificationManager.IMPORTANCE_HIGH
Here is the notification builder code.
NotificationCompat.MessagingStyle activeNotification = NotificationCompat.MessagingStyle.extractMessagingStyleFromNotification();
return new NotificationCompat.Builder(getApplicationContext(), ID)
.setContentIntent(pIntent)
.addAction(action)
.setSmallIcon( R.drawable.icon)
.setAutoCancel(true)
.setSound(uri)
.setStyle(activeNotification
.addMessage(body, SystemClock.currentThreadTimeMillis(), person)
)
;
Thanks in advance.