Learn-by-doing / lightning-extension

A browser extension that let's you make payments directly to websites via the Lightning Network
GNU Affero General Public License v3.0
7 stars 5 forks source link

[research] Messaging between extension and app running on host #11

Open RobinCsl opened 5 years ago

RobinCsl commented 5 years ago

Thanks to https://developer.chrome.com/extensions/nativeMessaging, we could do messaging between the extension and the host application.

So maybe, we could fork this https://github.com/lightninglabs/lightning-app to accept our messaging protocol.

For Firefox:

chill117 commented 5 years ago

Looks like it might be better to use a web service inside the electron process instead of using the native message API.

Setting up a callable native app requires installing manifest files at some specific places (depending on the OS) and on Windows some keys in the registry. Do not worry if it does not work at the first trial (it never did for me !), just keep searching.

See full discussion here.