Use CEF offline without appcache

I am studying the use of CEF in a new working application in which I want to display an interface with HTML5 / js. However, I do not want the model to be a typical web application that just displayed in the embedded browser (i.e., Retrieving resources from a remote server, for example, on a web page). Basically, I want to have a desktop application that comes complete with all the HTML and scripts needed to render the user interface, and is fully operational offline.

My question is: is CEF capable of doing this more or less out of the box? Or do I need to write a bunch of custom code to process and render local resources or embed a local web server? A simple example would be the creation of user interface buttons and the output for the main calculator application (although the planned application is much more complicated). How do I start to approach this?

I also see Electron as a possible solution. It seems like it is more focused on what I want to do (create a user interface with web technologies, but not necessarily connecting to something). However, we do have some C ++ libraries that we need to integrate, and I believe that it would be easier with CEF than with Electron.

From a look around, it seems that CEF supports appcache for so-called "offline applications." However, I cannot use it because of the many problems that it has. It also seems that appcache is dying , so I would not be attached to this sinking ship. Unfortunately, the service employee is not quite ready for prime time.

+4
source share
1 answer
+2

Source: https://habr.com/ru/post/1615120/


All Articles