You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest changes in #29 retrieve Duckbill information by opening a new tab and performing browser/DOM manipulation to update the local storage and then display the change. This process works; however, it is inconvenient for the user for two reasons:
It requires that a new tab is opened and waiting for the process of authenticating and parsing the DOM to complete in order to extract the data
Closing the tab at any point causes the process to fail, and it is slow because each page is rendered (loads its content)
I found a solution to these issues which would drastically improve the convenience to the user through native messaging. This allows the extension to communicate with a native application, which in our case, can be any external executable. Here are some outcomes from using native messaging:
An external application can be written in any language
Must be installed by the user (from what I gather) and the path must be known by the extension
If using an executable, must support multiple outputs for different operating systems
Using native messaging will allow us to use a headless browser and simulation through Selenium webdriver. This means that the user can click to check their Duckbill balance, and the same process of web scraping can be done in the background without any interference with the user.
I'm open to any discussion regarding this integration.
The text was updated successfully, but these errors were encountered:
From further research, it looks like any executable can be bundled with the distribution. This means we have to choose a language that will compile into an executable, provide one for each Windows, MacOS, and Linux, and run it depending on the platform architecture (which the extension can detect). Here is an example repo which uses Python, but uses a shell script to install the application.
I think Golang and C++ are good options for a native script, and potentially Python.
Edit: It looks like the above repo is derived from Chromium example source code.
The latest changes in #29 retrieve Duckbill information by opening a new tab and performing browser/DOM manipulation to update the local storage and then display the change. This process works; however, it is inconvenient for the user for two reasons:
I found a solution to these issues which would drastically improve the convenience to the user through native messaging. This allows the extension to communicate with a native application, which in our case, can be any external executable. Here are some outcomes from using native messaging:
Using native messaging will allow us to use a headless browser and simulation through Selenium webdriver. This means that the user can click to check their Duckbill balance, and the same process of web scraping can be done in the background without any interference with the user.
I'm open to any discussion regarding this integration.
The text was updated successfully, but these errors were encountered: