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

Similar Threads

  • Question Question
Android Question NB6 + Target SDK 33
Replies
6
Views
6K
Replies
1
Views
4K
Replies
11
Views
16K
  • Question Question
Android Question NB6 example-problem
Replies
1
Views
4K
Back
Top