How to implement Native Message with executable exe

286 views
Skip to first unread message

Chris Kim

unread,
Jun 24, 2019, 4:19:20 AM6/24/19
to Chromium Extensions
Hello. 
I'm trying to implement Chrome extension for communicating with external EXE. I have searched I can implement it to use Chrome's Native message. So I have followed the page where is Google's official site(https://developer.chrome.com/extensions/nativeMessaging). but the thing is that I got some errors when I tried to register it on Chrome. such as there are no version, manifest version and unrecognized allowed_origins, type or something. Did I do something wrong? or I missed something? or the page is wrong? Could you let me know the page where explain very detailed to implement native message with external EXE instead of the official page.

David Wolff

unread,
Jun 24, 2019, 6:46:13 AM6/24/19
to Chromium Extensions
You could create a web-socket server from within the EXE file. But that requires that you compile the source code (.exe file) yourself. And then you are able to connect to that web-socket server through your extension.

Chris Kim

unread,
Jun 24, 2019, 8:26:18 AM6/24/19
to Chromium Extensions
Thx to replying Wolff

you mean I can not use Native message for communicating with Chrome Extension and External EXE? cuz I need to develop chrome extension that sends web information to EXE in real-time when users travel website. which means web site wasn't ours. So I wanted to use Native messaging instead of web-socket. if you know the solution, could you let me know?

Thx in advance.

Radiant One

unread,
Jun 24, 2019, 8:30:16 AM6/24/19
to Chris Kim, Chromium Extensions
You really need to do some more thorough research on the web. It's a fairly complex thing to set up properly and all you're going to get here is general guidance and maybe a web link for starters.

Good luck!

On Mon, Jun 24, 2019, 4:19 AM Chris Kim <cjsc...@gmail.com> wrote:
Hello. 
I'm trying to implement Chrome extension for communicating with external EXE. I have searched I can implement it to use Chrome's Native message. So I have followed the page where is Google's official site(https://developer.chrome.com/extensions/nativeMessaging). but the thing is that I got some errors when I tried to register it on Chrome. such as there are no version, manifest version and unrecognized allowed_origins, type or something. Did I do something wrong? or I missed something? or the page is wrong? Could you let me know the page where explain very detailed to implement native message with external EXE instead of the official page.

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/b63925c4-185b-4b2a-a778-7928ac71b6ab%40chromium.org.

Chris Kim

unread,
Jun 24, 2019, 8:40:48 AM6/24/19
to Chromium Extensions, cjsc...@gmail.com
Thx to advising Radiant.

Probably, I missed something on the official web guide. also, I will look at the general guidance or starter guide here.


On Monday, 24 June 2019 21:30:16 UTC+9, Radiant One wrote:
You really need to do some more thorough research on the web. It's a fairly complex thing to set up properly and all you're going to get here is general guidance and maybe a web link for starters.

Good luck!

On Mon, Jun 24, 2019, 4:19 AM Chris Kim <cjsc...@gmail.com> wrote:
Hello. 
I'm trying to implement Chrome extension for communicating with external EXE. I have searched I can implement it to use Chrome's Native message. So I have followed the page where is Google's official site(https://developer.chrome.com/extensions/nativeMessaging). but the thing is that I got some errors when I tried to register it on Chrome. such as there are no version, manifest version and unrecognized allowed_origins, type or something. Did I do something wrong? or I missed something? or the page is wrong? Could you let me know the page where explain very detailed to implement native message with external EXE instead of the official page.

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.

Simeon Vincent

unread,
Jun 25, 2019, 12:23:37 AM6/25/19
to Chromium Extensions, cjsc...@gmail.com
I got some errors when I tried to register it on Chrome. such as there are no version, manifest version and unrecognized allowed_origins, type or something

Sounds like you're missing a fields in your extension's manifest.json file. Note that the manifest file referenced in the Native Messaging Host section of the nativeMessaging docs IS NOT your extension's manifest.json file - it's a file (or registry string) that Chrome will use to find out what executables it should connect to.

To be honest we don't have a great example of how to use native messaging at the moment. We have one sample, but it's a Chrome App rather than an Extension.

Simeon - @dotproto
Extensions Developer Advocate

Chris Kim

unread,
Jun 25, 2019, 2:19:35 AM6/25/19
to Chromium Extensions, cjsc...@gmail.com
thx to your kindness, Vincent.

Yeah, I was confused between manifest.json and host.json files. so I got a one sample on the internet. but it doesn't work well. I can connect chrome extension with host app but it's disconnected when I send a message to host.
the sample is below :

if you know the answer, plz could you let me know?
Reply all
Reply to author
Forward
0 new messages