Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidance on how to write the chrome_native_messaging_host.exe would be very helpful. #2802

Closed
BenKey opened this issue Aug 24, 2023 · 1 comment · Fixed by #2869
Closed
Labels
ADO cat: extensions Extensions-related content.

Comments

@BenKey
Copy link

BenKey commented Aug 24, 2023

This is an excellent and well written document. It answers most of the questions about native messaging. Unfortunately, like so many other resources on this subject, it leaves the most important question unanswered. How do you actually write the chrome_native_messaging_host.exe application?

This document makes it clear that stdin and stdout are used to communicate with the host. However some vital information is left out.

  • How is the information sent from the extension encoded? I have some information that suggests the first four bytes is a number that specifies packet length and the rest may be the packet data encoded as JSON but I am not certain of this.
  • How to encode the information that is sent back to the extension?
  • How does the chrome_native_messaging_host.exe application know when to exit?

A brief section on writing the chrome_native_messaging_host.exe application with a few code examples in different programming languages would be very useful.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AB#46170218

@captainbrosset
Copy link
Contributor

Thanks for the detailed request. Adding it to our team's backlog for internal discussions/prioritization.
We'll keep you posted on this issue of any progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADO cat: extensions Extensions-related content.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants