I know that we can access chrome.hid.getDevices() in chrome app. but I have also heard that chrome.hid.getDevices() can only be used in chrome app.
But can we somehow access chrome.hid.getDevices() in chrome extensions. Because I need to inject scripts using Content-script so that I can use my extension functions from Web page and according to my knowledge Content-script can only be used in Chrome Extension.
Is there any example to communicate with Chrome app with web pages?