I am trying to access a USB mass storage device using the WebUSB interface. I have read that USB mass storage devices cannot be accessed:
- "For example, if the device is a USB mass storage device that interface is not claimable and if there are no other interfaces the device will be hidden." (Link)
- "The following set of USB interface classes, which should not be claimed using the WebUSB API, will be explicitly blocked by Blink: Audio, Video, HID, Mass Storage[...]" (Link)
- "It cannot. USB mass storage devices are claimed by the system's generic USB mass storage class driver and are therefore unavailable to the browser." (Link)
We are currently using usb sticks for a standalone version of the app where the serial number of the usb stick is important to identify the license. For our new software I also need to access the serial number of the usb mass storage device, but best would be if I could do so in the browser.
Google Chrome does recognise the device as can be seen here.
But when asking for access to a device via WebUSB it is not shown in the list:
My code is pretty straight forward:
navigator.usb.requestDevice({ filters: [] }).then(e => {console.log(e)});
Is there any way to access the serial number of the USB mass storage device using a browser interface?