Notification icon doesn't disappear

Dirk A

Member
Licensed User
Longtime User
Hello,

In my app I have a notification that's created in my service :
B4X:
n1.Initialize
n1.icon = "icon"
n1.SetInfo("info","",Main)
n1.notify(1)

the icon appears in the title bar but when I close my app the icon remains in the title bar and I don't want that.

I've tried n1.Cancel(1) in my activity's destroy but it doesn't work...
 

Dirk A

Member
Licensed User
Longtime User
djeez , I'm mixing up several program languages here . I had to handle it in activity_pause . There's no destroy event in b4a :signOops:
 
Upvote 0
Top