Skip to content

Communicate between a C++ native app and a chrome extension with Native Messaging.

Notifications You must be signed in to change notification settings

anakornk/chrome-ext-native-messaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Chrome Extension Native Messaging Example

Communicate between a C++ native app and a chrome extension with Native Messaging.

Description

The example sends a text which a user entered through the extension popup view to a C++ native app. The native app will then write down the received data into log.txt. Later, it will send back the data to the chrome extension. The chrome extension will then display the received data in the popup view.

Installation

  1. Add the extension to chrome
Go to chrome://extensions/
Click Load unpacked
Choose the extension folder
  1. Update the "allowed_origins" field with the extension id received from step 1 in "native-app/com.hashpire.pingpong.json"
  2. Run install_host.sh (Make sure you have the required permission)
cd native-app
sudo sh ./install_host.sh

About

Communicate between a C++ native app and a chrome extension with Native Messaging.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages