Android Question How to know whether the notification is visible?

danijel

Active Member
Licensed User
Longtime User
Hi, I am curious how to know whether the notification is visible.

i.e. i want to check every hour or so whether i need to send notification or not.
however if notification is send then I don't want to send it again.

i need something like this:
B4X:
Sub Service_Start (StartingIntent As Intent)
   
    StartServiceAt("", DateTime.Now + 60* 60 * DateTime.TicksPerSecond, True) 'schedule the next task to run in 1 hour.
    n.Initialize
    n.AutoCancel=True
    n.Icon = "icon"
    n.SetInfo("Title", "Body", Main)
    ' Need to put some "IF" here
        n.Notify(1)
   
End Sub
Thank you in advance
 
Top