Android Question Second notification will be cleared

prokli

Active Member
Licensed User
Longtime User
Hello!
Within a service module I put this code:
netNotify.Initialize
netNotify.Icon = "icon"
netNotify.Sound = False
netNotify.Vibrate = False
netNotify.SetInfo("...", "Setup", Main)
netNotify.Notify(1)
brwNotify.OnGoingEvent = True

brwNotify.Initialize
brwNotify.Icon = "icon"
brwNotify.Sound = False
brwNotify.Vibrate = False
brwNotify.SetInfo("...", "Browse", FileExplore)
brwNotify.Notify(2)
brwNotify.OnGoingEvent = True
Service.StartForeground(1, netNotify)

Both notifications are shown on the notification bar of my device. Fine!
If I press the clear button of the notification bar, brwNotify disappears and netNotify is still visible.
What do I have to do to see even brwNotify after pressing the clear button??
Obviously I haven't understood what ".OnGoingEvent = " is expected to do!

Thanks
 
Top