How to use chrome.printerProvider?

1,284 views
Skip to first unread message

dung ta van

unread,
Dec 17, 2015, 5:19:02 AM12/17/15
to Chromium-Extensions-Announce
I want to use chrome.printerProvider to get printer information, and i tried to make an example:

chrome.printerProvider.onGetPrintersRequested.addListener(function(printerInfo) {//do some thing});

The part of my manifest.json:

"background": {
    "scripts": ["event.js"],
    "persistent": false
  },

 "permissions": [
     "printerProvider"
 ]

And i get the warning: permission value "printerProvider" is not recognized and the code does not work!

Can you show me an example that's runable?

I use IDE: Chrome dev editor

Thank!

Reilly Grant

unread,
Jan 4, 2016, 4:54:35 PM1/4/16
to dung ta van, Chromium-Extensions-Announce
The chrome.printerProvider API allows an app to provide a printer that Chrome can print to. It will not return any printer information.

The permission is likely flagged by Chrome Dev Editor because it has not been updated to be aware of the new "printerProvider" permission.

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/1a985581-3125-4b92-9c1b-de988d2ae339%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
Reply all
Reply to author
Forward
0 new messages