xbmcgui.Dialog().notification(icon)
#1
Hi,

In my script, I call

Code:
xbmcgui.Dialog().notification(encode(__scriptname__), encode(msg), time=time, icon=__icon__)

Why all following system notifications (or add-on notifications without icon) still display my icon ?

Thanks a lot
Reply
#2
this is a common issue I've experienced very often as well. would be curious to know why that happens
HTPC LibreELEC 9.0 - Xperience1080+
RPi3 LibreELEC Milhouse build - Arctic Zephyr
Reply
#3
Please provide a test addon as zip/github for reproduction.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#4
also please create trac ticket under GUI component and provide the addon
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#5
according to our docs you should use this format:
Code:
xbmcgui.Dialog().notification(encode(__scriptname__), encode(msg), __icon__, time)

so give that a shot (if you haven't tried it already)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#6
I don't know if this is related, but there is another issue with notifications where you have multiple notifications queued by a script then the time argument is only honoured by the last one i.e. are the icon and time parameters not being reset/updated correctly?

This was reported here and added to trac.

If it's unrelated, then please ignore this comment so the thread can focus on the OP's issue.
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply

Logout Mark Read Team Forum Stats Members Help
xbmcgui.Dialog().notification(icon)0