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.
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