FAQ Database Discussion Community


Can i embed program through native messaging in Chrome (like old npapi plugins)?

google-chrome,google-chrome-extension,npapi,chrome-native-messaging
Is it possible to create Chrome extension which can embed a program into Chrome? I mean something like old NPAPI plugins such as VLC player, java, etc... I found some native messaging examples, but every example is only for sending simple messages to control an external program. But for example...

Getting “Error when communicating with the native messaging host.” when sending message from native host to browser extension (Windows)

google-chrome,winapi,c++11,google-chrome-extension,chrome-native-messaging
I'm getting an "Inside onDisconnected(): Error when communicating with the native messaging host." when sending a message from my native host app to the browser extension. There are several things that can cause this: 1) Incorrect length sent at beginning of message, or improper order of length bytes sent (endianness)....

C# native host with Chrome Native Messaging

c#,google-chrome,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 Chrome Native messaging from chrome extension to...

C# NativeMessaging to Chrome

c#,google-chrome,google-chrome-extension,chrome-native-messaging
I am trying to create a plugin/listener to have an external application pump messages into my SPA page/app. I've created manifests, JS files, and added a reg entry, but to no avail, my listeners aren't getting triggered. I've got: // JavaScript source code Native.js - Plugin chrome.runtime.onMessageExternal.addListener( function (request, sender,...

Native messaging or http

sockets,web-applications,chrome-native-messaging
I want to be able to execute local shell commands in a web application. Chrome Native messaging api seems to be good for that, but as it needs also a service in background, I do not see a real difference with a little http server. Is there a real structural...