Android Question How to get multiple NB6 notifications of the same type

Creaky

Member
Licensed User
Longtime User
Hi guys,

I've been trying to integrate NB6 into my app, but I'm having some trouble generating multiple notifications of the same type from the same app. I try to generate multiple notifications of the simple type.

So running through this couple of lines multiple times, with different strings as parameters:

B4X:
    Dim n As NB6
    n.Initialize("default", Application.LabelName, "DEFAULT").AutoCancel(True).SmallIcon(smiley)
    n.Build("Title", "Content", "tag1", Me).Notify(4) 'It will be Main (or any other activity) instead of Me if called from a service.

But only the last notification of a sequence is shown, all other notifications disappear.
What am I doing wrong?
 

DonManfred

Expert
Licensed User
Longtime User
What am I doing wrong?
you are using the same ID each time (4)

Notification. Notify (Id As Int)
Displays the notification.
Id - The notification id. This id can be used to later update this notification (by calling Notify again with the same Id),
or to cancel the notification.
 
Last edited:
Upvote 0
Top