I have this project where I need my webapp to talk to a chrome extension. The documentation to get your webapp to send requests to this chrome extension is unfortunately for javascipt. So I'm wondering if someone can point me in the right direction to the equivalent feature in flutter (library or methods).
Here is the documented way of sending requests to the chrome extention:
https://www.icondev.io/docs/chrome-extension-connect
Related
I have a java application that can create a Socketed lan server to parse information from a website, with the main goal of collecting chat data. At first I was in a test version of that website and was able to just open a web socket in a chrome extension then save it toward the Java server. Now that I have went to the public version of the site where its actually heavily protected, the site has the Content Security Policy, that disallows the use of Web Sockets from chrome extensions. I am unsure if there is any possible way to transfer that chat data from the site to the server via google chrome extension or any other way.
I was trying to open a socket inside of the Website itself. "wOxxOm" gave me a lead that you cannot do that and I later on understood that you had to use websockets in the background.js of the chrome extension.
I am developing an Edge extension, I need to send data from it to WPF application. In Chrome extension, i use $.post to send data like this:
var listener = "http://localhost:60024/";
$.post(listener, postData);
And in WPF application receive this data with HTTPListener:
_listener = new HttpListener();
_listener.Prefixes.Add("http://localhost:60024/");
_listener.Start();
But in Edge this does not work, because $.post dont do anything. I have seen that Native Messaging can be used, but I do not know if it works with WPF applications.
Could anybody help?
But in Edge this does not work, because $.post dont do anything
In this issue, The MS Edge Team says that accessing localhost in Edge extensions is blocked by design:
"We are working on Native Messaging for the next release and using native messaging is the right way to solve this scenario. Localhost access is not enabled from extension background page is by design."
So, you could try to use an external API to transfer data. Please refer to this similar thread.
I have seen that Native Messaging can be used, but I do not know if it
works with WPF applications.
Microsoft Edge extensions are able to use native messaging to communicate with a companion Universal Windows Platform (UWP) app. More details, please refer to Native messaging in Microsoft Edge.
I need to develop a Chrome extension that will be able to send messages between instances of the extension (i.e. active Chrome browsers with the extension installed around the world) very quickly (like push notifications).
I understand that the regular Chrome messaging (even the external type) only works with extensions installed on the same browser, not remote ones.
I'm looking for the best, simplest solution, that will provide quick communication between the clients. The only way I thought about is to get some server running (I don't have one, so I need to find an online service), and run a script that will continuously receive/forward data. Is that the best way? Is there a simpler solution to set up for very simple communication between the remote extension instances?
I want to use Google Chrome or a fork of Chromium as a studio for data browsing and transformation.
I know extensions have a messaging api but I wanted to see if anyone knew a way to coordinate work or content rendering between tabs or windows in Chrome.
Is there something faster and/or more flexible than chrome extensions for communicating between tabs?
Local storage is a good way to communicate as long as the tabs are on the same domain.
I'm trying to develop a Chrome App that will work together with a Chrome Extension that I already created, wherein the Chrome Extension will send information to the Chrome App.
For this communication I thought use the WebSocket locally, in Chrome Extension I managed to make the Client, but now I'm having difficulty in creating the Server in the Chrome App, because I wanted to make as simple as possible without having to install something beyond of the Chrome App.
Among the first Google results there is a sample app from Chrome team: Http WebSocket Server.
You've got to understand that making a server in Chrome Apps is difficult; you are given access to a raw socket, and you need to fully implement the protocol that a particular server must use. Even a HTTP server is non-trivial, WebSockets is even less so.
So: it's possible, but it's not simple unless you're using an existing library.
Just to add to the accepted answer:
There is a Chrome Extension already in the Chrome Web Store: Web Server for Chrome.
And it is opensource: GitHub Link. You can use it as a library to your Chrome App.
Cheers!