Questions tagged [chrome-native-messaging]

Native Messaging is a Chrome-specific mechanism that allows Chrome extensions to communicate with Native applications running on the host machine.

Native Messaging is a Chrome-specific mechanism that allows Chrome extensions to communicate with native applications running on the host machine. The communication is done via standard in/out streams. This mechanism is supported for Windows, Mac and Linux operating systems.

This feature of Chrome allows developers to reach beyond the limits of the browser and into the host machine's domain (albeit in a limited fashion). The traditional way to do this was using the deprecated NPAPI plugin technology.

The documentation at https://developer.chrome.com/extensions/nativeMessaging includes examples and debugging tips. Check them out before posting a new question.

301 questions
30
votes
2 answers

C# native host with Chrome Native Messaging

I spent a few hours today researching how to get Chrome native messaging working with a C# native host. Conceptually it was quite simple, but there were a few snags that I resolved with help (in part) from these other questions: Native Messaging…
itslittlejohn
  • 1,808
  • 3
  • 20
  • 33
15
votes
2 answers

Similar technology to Chrome's Native Client Messaging in Firefox?

We want to replace a custom NPAPI interface between a browser based web application and an client side daemon process. Is there a similar technology to Chrome's Native Client Messaging in Firefox?
12
votes
1 answer

Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response

I am finding the 'Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received' error in the background.js. My chrome extension works but the dev tools…
12
votes
1 answer

chrome.runtime.connectNative generates Uncaught TypeError: undefined is not a function

I did write an chrome extension that calls this connect() function to connect to a local C++ program: function connect() { console.log("test1"); //port = chrome.extension.connectNative('com.a.chrome_interface'); port =…
11
votes
3 answers

Google Chrome Extension - Specified Native Messaging Host Not Found

I created an extension that uses native messaging to a host. The manifest.json of the extension is: { "manifest_version": 2, "version": "1.0", "name": "Native Messaging Example", "description": "Send a message to a native…
11
votes
1 answer

Native Messaging Chrome

I am trying to get Native Messaging between my chrome extension and my c# application. The javascript works fine, but I am getting this error: Error when communicating with the native messaging host. The application does get launched along with…
10
votes
4 answers

Chrome Native Messaging API chrome.runtime.connectNative is not a function

I am looking to manipulate the content page that's currently on the tab in Chrome and if this below can not do that then I need to find the way in order to do that! Hey all I am trying to get this new chrome extension working with my C# program to…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
10
votes
2 answers

Chrome native host in C++, cannot communicate with Chrome

I am trying to implement a Chrome extension using runtime.connectNative and postMessage. I am following the Chrome documentation, downloaded the native messaging example, and changed the native app to using C++. However, the native app cannot…
10
votes
2 answers

Chrome Native Messaging not closed when chrome closed

I've made chrome host for passing native messages between my extension and my process, my process starts when chrome starts but not closed when i close chrome, should i add parameter to the manifest of the host or should i add my process handling…
shacharsa
  • 351
  • 1
  • 4
  • 12
9
votes
1 answer

What is Native Messaging between applications and how does it work?

The Chrome developer docs refer to something called Native Messaging to communicate with other desktop applications directly from the Chrome extension or app. How can I tell when a desktop app has such native messaging available and what kind of…
8
votes
3 answers

communication between native-app and chrome-extension

I have a native app written in c++ and a chrome-extension. I am communicating between them using 'chrome native messaging'. Native-App code: int main(int argc, char* argv[]) { unsigned int a, c, i, t=0; std::string inp; do { inp=""; t=0; //…
8
votes
1 answer

Chrome : Native messaging Error: Access to the specified native messaging host is forbidden

I am running the Native messaging sample app. (http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/nativeMessaging/). I have added registry key …
7
votes
1 answer

Cross-Browser, Cross-Platform native messaging using Xamarin Mac, C#

I tried to recreate the example to connect to my Xamarin Mac application using a chrome extension I will use as backbone for all other browsers, but it didn't work with the following error: Error when communicating with the native messaging…
Khal_Tech
  • 315
  • 1
  • 3
  • 13
7
votes
2 answers

How to message child process in Firefox add-on like Chrome native messaging

I am trying to emulate Chrome's native messaging feature using Firefox's add-on SDK. Specifically, I'm using the child_process module along with the emit method to communicate with a python child process. I am able to successfully send messages to…
7
votes
2 answers

Equivalent of Chrome Native Messaging in Edge

NPAPI plugins are not supported on Microsoft's new browser Edge. Google Chrome developed Chrome Native Messaging in order to interact with an executable installed on the computer provided its link on the registry (for Windows OS). Firefox seems to…
Thordax
  • 1,673
  • 4
  • 28
  • 54
1
2 3
20 21