Comments (4)
@OzBob - see my as yet unfinished project at : https://github.com/shawty/hbbtvbrowserEXPERIMENTAL there's plenty of sample code in there on how to use the message API's
from webview2samples.
Maybe related to issue 261 on 'feedback' repo:
@shawty says: "I've worked out some interesting ways to get the javascript side of things communicating with the windows side of things"
from webview2samples.
@shawty thank you.
and an open issue about passing actual c# objects and JSON serialization using:
await chrome.webview.hostObjects.sync.eventForwarder.SendData(dataObj);
here: MicrosoftEdge/WebView2Feedback#292
which shows passing C# data objects without the JSON serialisation that your code uses https://github.com/shawty/hbbtvbrowserEXPERIMENTAL/blob/fae30f8e78a341254dc07d2f3bcb3c2f300d527e/EdgeWebView2Test/UtilClasses/PostMessageSender.cs#L10
I'm not sure C# to JS strongly typed data objects are a thing I can get behind, since I still need JS versions of those classes to get intellisense working in my JS/TS projects.
from webview2samples.
2022 Feb 24 react-native-webview/react-native-webview#1848 (comment)
[Webview2 Microsoft Windows] Implements postMessage and inject javascript in Webview2
So we are starting the party, again.
Just in time for the MAUI release in Build 2022 https://mybuild.microsoft.com/en-US/sessions/599c82b6-0c5a-4add-9961-48b85d9ffde0?source=/speakers/3737608b-5c9a-4422-b90e-ea325115dfb2 (about 20min in)
from webview2samples.
Related Issues (20)
- Unity Hololens 2 sample crashes at startup HOT 12
- Unity Feature Request: expose AddScriptToExecuteOnDocumentCreatedAsync HOT 2
- Unity | HoloLens 2 - Application crashing at start HOT 23
- webpage is blank after deploy it in hololens2,app works fine thougth HOT 10
- Can you provide a webview2 sample with java HOT 1
- Null Reference Exception when trying to run the WinForms sample project HOT 3
- Hololens 2 Completed Sample Crashes to Shell Environment on Launch HOT 3
- The WebView2APISample program sometimes fails to restore the visibility of the webview correctly.
- Calling C# native Winrt APIs from WebView2 in WinAppSDK
- "ERR_Blocked_by_client" Error in WebView on HoloLens 2 HOT 4
- HelloWebView contains race condition HOT 2
- Unity Sample Project immediately crashes once deployed to the HoloLens2/ in the Emulator
- Extended Delay in Launching Hololens Application
- Adding Multiple Webview in Unity
- Why does GetSDKBuildVersion remove the first two parts? HOT 1
- dll is missing in Hololens2 Getting Started sample
- Is it possible to run in a Windows Container/App Service to convert HTML to PDFs? HOT 2
- WebView2WpfBrowser example: File ScenarioPermissionManagement.html missing
- How To Build WebView2WpfBrowser HOT 1
- error trying to build WebView2APISample
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webview2samples.