GithubHelp home page GithubHelp logo

Comments (4)

shawty avatar shawty commented on July 29, 2024 1

@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.

OzBob avatar OzBob commented on July 29, 2024

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.

OzBob avatar OzBob commented on July 29, 2024

@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.

OzBob avatar OzBob commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.