Manifest - USB Printers

Published on

Caution

Important: Chrome will be removing support for Chrome Apps on all platforms. Chrome browser and the Chrome Web Store will continue to support extensions. Read the announcement and learn more about migrating your app.

The usbPrinters manifest property declares which USB printers are supported by an app using the printerProvider API.

Sample manifest.json

{
"name": "My printer app",
"usb_printers": {
"filters": [
// This app can print to the Nexus One and any printer made by Google.
{ "vendorId": 6353, "productId": 19985 },
{ "vendorId": 6353, "interfaceClass": 7 }
]
},
...
}

Reference

  • filters (array of object) - required

    A list of USB device filters matching supported devices. A device only needs to match one of the provided filters. A vendorId is required and only one of productId or interfaceClass may be provided.

Last updated: Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.