Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

enable notifications

Post Reply
ericktux
Posts: 40
Joined: Thu Oct 29, 2020 10:11 am

enable notifications

Post by ericktux »

Good morning, how can I enable notifications?
Image
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: enable notifications

Post 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.
ericktux
Posts: 40
Joined: Thu Oct 29, 2020 10:11 am

Re: enable notifications

Post 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.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: enable notifications

Post 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.
Post Reply