Android Question question about NB6 and number of displayed notifications

giggetto71

Active Member
Licensed User
Longtime User
Hi,
I have made a small modification to https://www.b4x.com/android/forum/threads/nb6-notifications-builder-class-2018.91819/#content to test the behavior in case of multiple notifications.
Basically I have modified the "Simple_Notification_Sound" in a way that each notification has a unique ID so I get a new smiley notification every time I press the "sound only" item in the list.

B4X:
Sub Simple_Notification_Sound
    Dim n As NB6
    n.Initialize("default1", Application.LabelName, "DEFAULT").AutoCancel(True).SmallIcon(smiley)
    n.SetDefaults(True,False,False)   
    n.Build("notifica", "sound only", "tag10_" & ii, Me).Notify(10+ii) 'It will be Main (or any other activity) instead of Me if called from a service.
    ii=ii+1
End Sub

The thing works fine for the first 3 but after the 4th the smiley is only one regardless the number of notifications and the only way to see the them is to open the notification. It seems like the maximum number of notifications displayed is fixed (3?). if it's like that is there way to change that number?
Is the max number of displayed notifications something I can change within the Nb6 class? I have been trying with the "number" method but did not succeed.
 

Sandman

Expert
Licensed User
Longtime User
It would be consistent with how Google want things to work, so I don't expect you'll be able to fix that. (Basically, it's bad user experience getting a notification list long as an elephant's trunk, so they flatten all from a single app to one entry.)
 
Upvote 0

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…