This article contains an example extension that uses native messaging to communicate with a (Delphi-made) Windows executable that serves as a native messaging host.
Click here for more info on Chrome Native Messaging.
Install the sample extension
- Download the sample extension here.
- Start Google Chrome
- Click on Chrome’s hamburger icon, then click on: Tools > Extensions
- Make sure the check box labelled Developer mode is ON
- Click on: Load unpacked extension…
- Select the extension directory.
Install the sample host
- Download the sample host here.
- Double-click on install_host.bat (should Windows prevent this from starting, then click on More info and then Run anyway)
Start the sample
- Start Google Chrome
- Enter this into the navigation bar:
chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/main.html
3. Click on Connect
4. From here, you should be able to send (and receive) messages from the host