Android Question NB6 notification question

Sergey_New

Well-Known Member
Licensed User
Longtime User
After receiving a notification and exiting the app,
nb remains activated, and the next time I launch the app, I receive the notification again. How can I avoid this? I'm using Service.StopAutomaticForeground.
I want the notification to trigger once per day.
EveryDay:
Sub Service_Start (StartingIntent As Intent)
    Dim nb As NB6
    nb.Initialize("default", Application.LabelName, "DEFAULT").AutoCancel(True).SmallIcon(LoadBitmapResize(File.DirAssets, "icon.png", 24dip, 24dip, False))
    nb.ShowWhen(DateTime.Now)
    nb.Color(Colors.Blue)
    nb.Build("Events", "", "tag1", Main).Notify(1)
    Service.StopAutomaticForeground
End Sub
 

DonManfred

Expert
Licensed User
Longtime User
I want the notification to trigger once per day.
Why you are creating a new Notification then?
Based on the code you posted a new Notification is send when the service starts...
 
Upvote 0
Top