>This is the primary approach Firefox for Android uses itself when getting the Java and Gecko sides to talk to each other.
Is this messaging system synchronous or asynchronous? Bidirectional synchronicity would be awesome. -Heath Borders Sent from my Nexus 5 On Jul 11, 2014 4:08 PM, "Mark Finkle" <[email protected]> wrote: > > > ------------------------------ > > Does GeckoView have anything like AddJavascriptInterface yet? > > > Not yet. We occasionally brainstorm about ways to make something like that > work. We may not be able to replicate the addJavascriptInterface API, so we > need to at least try to cover the use cases. > > Gecko natively has ways to add external code into web content, but that is > usually done through JavaScript or C++ approaches, not Java. > > We may look at adding a messaging system, which allows a developer to > inject some JavaScript methods into web content and the the method > implementation could send JSON messages to Java code. This is the primary > approach Firefox for Android uses itself when getting the Java and Gecko > sides to talk to each other. > > Of course, there are likely other ways to make something work too. > > Finkle > > _______________________________________________ > mobile-firefox-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/mobile-firefox-dev > >
_______________________________________________ mobile-firefox-dev mailing list [email protected] https://mail.mozilla.org/listinfo/mobile-firefox-dev

