Re-draw notification icon

Shay

Well-Known Member
Licensed User
Longtime User
Hi

I have service, all is ok
but I found that after icon is been draw, I can open the task bar
and click the "delete or remove button" (translated from hebrew)
and the icon disapear

how can I check if icon exist and re-draw it
(I can re-draw with the n.notify(1) but I don't know how to know if Icon exist)
 

Shay

Well-Known Member
Licensed User
Longtime User
seems to work - posting code for other people

n.Initialize
n.Icon = "icon"
n.SetInfo("My app", "Running in background", MainMenu)
n.Notify(1)
Service.StartForeground(1,n)
 
Upvote 0
Top