Martin Lukas
Martin Lukas

Reputation: 314

Android multiple notifications with one channel

I'm creating an app which requires multiple notifications just like shown on the pic.enter image description here

Thing is I can't figure out how to do so. Using different notif. IDs doesn't seem to help. Do I need to create different channel for each notification ?

Upvotes: 1

Views: 922

Answers (1)

Martin Lukas
Martin Lukas

Reputation: 314

2nd argument of PendingIntent.getBroadcast(); can't always be the same, something like this will do: PendingIntent.getBroadcast(this, NOTIFICATION_ID, intent, 0);

Upvotes: 1

Related Questions