Page 1 of 1

How to make CEF4delphi support "Web Notifications" and "Push Messages"

Posted: Wed May 12, 2021 11:55 am
by ddiiccoo
when i test my browser at http://html5test.com/,i found my browser can't support "Web Notifications" and "Push Messages".how to make it support?

Re: How to make CEF4delphi support "Web Notifications" and "Push Messages"

Posted: Wed May 12, 2021 12:26 pm
by salvadordf
Hi,

CEF doesn't support web notifications and push messages if you use the current components to embed a browser.

...however, the new "ChromeRuntime" mode supports them!

The CEF project maintainer said that ChromeRuntime is still in experimental state so I wouldn't use it yet. In addition to that, I'm still fixing a bug in the "views framework" that will be used to embed a browser in ChromeRuntime mode in the future.

So, for now you have to use alternative ways to send a message from the render process to the browser process and then show a custom notification from your application.

Re: How to make CEF4delphi support "Web Notifications" and "Push Messages"

Posted: Wed May 12, 2021 12:29 pm
by ddiiccoo
understand,thanks