Chrome extension message passing not working (background.js to content.js)

Everything looks to be in order from what I can see in your post, so i’m just throwing ideas out: I think the clue to the error here is the first error, not the second — it looks like the communication between the scripts hasn’t established correctly. Possibly try changing the persistent setting of your … Read more

C# native host with Chrome Native Messaging

Assuming the manifest is set up properly, here is a complete example for talking to a C# host using the “port” method: using System; using System.IO; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace NativeMessagingHost { class Program { public static void Main(string[] args) { JObject data; while ((data = Read()) != null) { var processed = ProcessMessage(data); … Read more