Search code examples
notificationsiconstaskbarnode-webkit

Changing Taskbar menu icon in nodewebkit app dynamically


I am working on a nodewebkit app. Looking for a functionality where in I can change task-bar icon of app to notify users, similar to what Skype does when a new message is received by user.
Is there any way it can be done in Nodewebkit?

Initially I tried changing window.icon in package.json file, but then I came to know that it is used only once, i.e. on app load. So that did not work.

Anything else I can try?

Thanks in advance


Solution

  • Window.requestAttention(Boolean attention) is what I was looking for.
    It worked for me. Thanks to Dhiraj, It gave me an additional feature for icon.