I am using InboxStyle
notifications so that I can append text with addLine(txt)
. Problem is that the same text is added for all notifications, even with different notification IDs! How can I hold a new builder
object for each ID, that way inboxStyle.addLine(txtMsg)
won't add a new line to all other notifications?
builder = new NotificationCompat.Builder(this); inboxStyle = new NotificationCompat.InboxStyle(); builder.setStyle(inboxStyle); inboxStyle.addLine(txtMsg); notificationManager.notify(userID, builder.build());
0 comments:
Post a Comment