So I have application that as side action, sends out notification towards Android Auto (not just towards AA, but also other notifications).
Till now we just added UnreadConversation into NotificationCompat.Builder
val builder = NotificationCompat.Builder(context, notificationHolder.channelID)
...
if (unreadConversationForAndroidAuto != null) {
builder.extend(NotificationCompat.CarExtender()
.setUnreadConversation(unreadConversationForAndroidAuto))
}
NotificationCompat.CarExtender().setUnreadConversation() is now deprecated and I can't find any documentation on how to add MessagingStyle (this is what replaced UnreadConversation) as additional message to Notification.
I don't want to send 2 different messages, where we previosuly sent just one. How can I easiest refactor this to go new way.