Search code examples
google-chromegoogle-chrome-extensionserial-port

Google Chrome Extension serial port on website


I use chrome.serial to communicate with device on COM port and i need provide basic api for javascript on my web-site. First try was with content_script + messaging, but i can't use serial permission with content_script because one of them require extension to be packaged app, and another to be extension. Can i solve this issue?


Solution

  • You can solve this by a chrome extension to support Content Scripts and packaged app for serial port communication with External Message Communication

    Fetch your Extension Id's using management API and establish connection for single message communication.

    On Message External is fired when a message is sent from another extension.

    References