Search code examples
google-chromechromiumchromium-embedded

How do I enable desktop notifications in Chromium Embedded Framework (CEF)?


How do I enable desktop notifications in Chromium Embedded Framework (CEF)?

When I load my url in Google Chrome, window.webkitNotifications is non-null. When I load my url in my embedded CEF browser, window.webkitNotifications is null.

 if(!window.webkitNotifications) {
    alert("You need to use The Google Chrome Browser to get this feature!");
    return false;
 }     

Are desktop notifications supported in CEF? If so, how do I enable them?


Solution

  • As far as I know, current CEF versions don't support this feature.
    I also needed this functionality in my project. I ended up implementing it myself, under a different namespace with slightly different functionality.

    So you can implement it yourself using JS Extensions. Might take some work, but it'll get you what you need.

    You can also try asking that question in the CEF Support Forum, you might get a better answer than "do it yourself".

    I'd love to hear a better solution for this.