Does anyone know if there is a way to group a notification in the status bar but not in the list of notifications?
I want to show only one icon in the status bar but when the user drags down the "notifications list" it should be several notifications with different intents.
As I understood there is only possible to either group both notifications on both places or to create several notifications which will cause several notifications in the status bar. Is this the case?
As I undestood there is only possible to either group both notifications on both places or to create several notifications which will cause several notifications in the status bar. Is this the case?
Yes, but you can create as complex of a custom Notification
view as you want, via the contentView
field on Notification
. This is a RemoteViews
, better known as the what you use for rendering a home screen app widget. So, while there can only be one entry in the notification drawer for you, you can have it have several buttons each firing a separate PendingIntent
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With