Page 1 of 1
enable notifications
Posted: Wed Mar 12, 2025 4:22 am
by ericktux
Good morning, how can I enable notifications?

Re: enable notifications
Posted: Wed Mar 12, 2025 2:47 pm
by salvadordf
Hi,
Notifications work when the CEF browser uses the Chrome runtime style, which is enabled by default unless the browser uses the OSR mode.
See the MiniBrowser demo.
Re: enable notifications
Posted: Wed Mar 12, 2025 9:30 pm
by ericktux
Thank you very much for responding. One question: How do I use Chrome's execution style in my project?
I've checked the "Minibrowser" project but can't find the code.
Thank you for your time.
Re: enable notifications
Posted: Thu Mar 13, 2025 10:06 am
by salvadordf
The Chrome runtime is enabled by default and you only have to copy the code from the demo that fits your needs to your application.
Only the demos that set the TChromium.RuntimeStyle property to CEF_RUNTIME_STYLE_ALLOY, or the demos in OSR mode, also known as off-screen rendering mode, use the Alloy style.
The biggest different between the Chrome and Alloy runtime style are the destruction steps but all the demos have some code comments explaining how to destroy the application correctly.