I need a way to highlight the icon of Desktop PWA in windows toolbar. This feature is available in hangout when any new message arrives, the colour changes of hangout icon. Also google chrome is changing the colour of chrome icon in toolbar when it completes the downloading.
Tried below code, but chrome.app.window is going undefined
var appWindow = chrome.app.window.current();
appWindow.drawAttention();
(reference link:-StackOverflow)
Tried below code as well, but chrome.windows going undefined
chrome.windows.update(windowId, {drawAttention: true});
windowId will be -2 for current window
(reference link:-StackOverflow)
Did reading about manifest.json on: https://developer.mozilla.org/en-US/docs/Web/Manifest and https://developers.google.com/web/fundamentals/web-app-manifest/
but did not find anything for highlighting the icon.
Need this feature for only chrome browser for version 68 and above