Files
Shubham Rasal 1fb09e4e68 Update mv3 native messaging (#842)
* migrate to mv3

* migrated download links to mv3

* Revert "migrated download links to mv3"

This reverts commit 70e4512277.

* restored the old mv2 manifest

* Address feedback

* Update installation location on macOS

We need to use specific folders otherwise Chrome/Python doesn't
have permission to execute the file.

* Fix linting errors

* Rename app directory to extension

* Use updated README template

* Update uninstall script

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2024-01-31 15:44:14 +00:00
..
2023-02-03 10:58:04 -06:00
2024-01-31 15:44:14 +00:00
2024-01-31 15:44:14 +00:00

This directory contains an example of chrome application that uses native messaging API that allows to communicate with a native application.

In order for this example to work you must first install the native messaging host from the host directory.

To install the host:

On Windows:

Run install_host.bat script in the host directory. This script installs the native messaging host for the current user, by creating a registry key HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.google.chrome.example.echo and setting its default value to the full path to host\com.google.chrome.example.echo-win.json . If you want to install the native messaging host for all users, change HKCU to HKLM. Note that you need to have python installed.

On Mac and Linux:

Run install_host.sh script in the host directory: host/install_host.sh By default the host is installed only for the user who runs the script, but if you run it with admin privileges (i.e. 'sudo host/install_host.sh'), then the host will be installed for all users. You can later use host/uninstall_host.sh to uninstall the host.