It seems that both in Qt's #QWebEngineView (or whatever it is called) and macOS's WKWebKit there is a simple way to return a reply to a message sent from JS running in the embedded web page to the surrounding native (C++/Swift) code. But not in #WebView2 on Windows. Is this true?
I mean when embedded in Qt and macOS, you can have JS code that does something like
var foo = await whatever.postMessage("hello");
(Where "whatever.postMessage" is the way to send a message to the surrounding native code hosting the embedded web page where the JS is. It differs slightly between the three cases, and also GTK.)
Apparently with WebView2 it is not this easy? Sad.