I am developing chrome extension using printerProvider APIs to print a webpage loaded in the browser.
I have added a new printer using onGetPrintersRequested() & onGetCapabilityRequested() APIs in my extension. I have not installed printer drivers of this printer on my local system.
My understanding from reading API documentation and other references is, using onPrintRequested() and providing printJob info, job (contents of web page) can be sent to the printer I added in my extension.
My question is, how does job reach the printer? Should I write some code to actually send the job to printer? OR is it automatically handled by the chrome APIs OR soes it use any default driver?
Basically my question is, how is printing handled by chrome extension if it is not using any printer drivers or cloud ready printers?
Thanks in advance.
You need to handle the printing yourself. The onPrintRequested event gives you data about the print request. You should then call the result callback with the status. To communicate with the printer, there are a number of app APIs. If you need to communicate with a printer from an extension, you will need to use a companion app and messaging.
Related
I've been doing a lot of reading and research on Web Bluetooth.
I just want to send some text from a BLE Server (in this case a web app running on iOS WebBLE app)...and have the text appear on another web app running on Chrome on my Mac.
I just want a textarea and a send button for the Server and a dynamically updatable span on the client.
Seems like all tutorials assume Server is some kind of peripheral (monitor, light bulb, etc)..and that you just have to write Client code to interact with it.
Is it possible to do this? Seems like it should be simple. Thanks
I guess I'm asking how to turn desktop Chrome into peripheral device using Web BT
How can I get my Mac browser to advertise using Web BT?
The Web Bluetooth API does not include APIs for acting in the peripheral role. A page using the API can only take on the role of the central.
I claim that I searched for weeks without found an answer.
I'm developing a web app in rails located in a web server and I need to print some text to my home thermal printer. I want to do this directly without open browser dialog and the app should do this on all the browser.
I know that I can do it with Google Cloud Print but it will only works with Chrome. ( I can add this printer only in classic printer mode, because Cloud Print does not support it as cloud printer ).
There is a way to do this?
Thanks in advance.
Currently, I can search my printer with Bonjour/SNMP protocol by
NSNetServiceBrowser
NSNetService
Now I want to print my document by IPP protocol.
Could you please tell me way to print with IPP in iOS?
Usually iOS Apps don't care about the printer protocol. It's sufficient to use Apples AirPrint focused Print-API. I can't see how UIPrinter would expose details like IPP connections through the API.
If you don't want to use Apples API for printing, you should implement IPP. A good start could be to look at my simple print-job implementation written in java. I'd be happy to assist in porting this to Swift of Objectiv C.
Actually iOS applications doesn't bothered about printing protocols.We can print images and other documents using apples AirPrint. The steps for printing from iOS device described below.
1.Connect our device and printer in the same network.
2.select an image/document for printing.
3.select the printer from network.
4.Give print
We can give print from gallery,chrome etc and other printing applications.In android we need print plugins for printing(eg:Mopria, a universal print plugin).
But in iOS we don't need the support of any plugins, i think.
Is it possible - and if so, how? - to print from a Firefox OS phone?
Looking for a real mobile solution - e.g., printing out a receipt using mobile phone and a small receipt printer (connected probably through usb or wifi tethering) at a marketplace, on a train, etc. (The mobile will communicate through internet with a server, so it will have an internet connection.)
If you can get the printer on the same network as the Firefox OS device then you could try running this pure JavaScript implementation of the Internet Printing Protocol to send a file to the printer from your app. It would definitely need some changes to use standard web APIs rather than Node JS APIs. It may be possible to implement it with XMLHttpRequest or perhaps something lower level like TCPSocket.
We have plans of developing a web application that will have to communicate with our locally running application. One of the possible options is using browser extensions. I was looking into how Skype add-ons to browsers communicate with Skype client. In Firefox, Skype add-on inserts a piece of HTML when it encounters a phone number.
Is this
<span skypeaction="...">
processed by a Skype extension which makes a call using Skype API? Do extensions for other browsers use Skype API or other communications mechanism?
I did a bit of research and here's what I found. When the user clicks on the Skype link injected by the extension, the extension creates a new Skype process and passes it the parameters specifying the action and the number. Custom protocol handler is not used.
The Skype extension would use regular expressions to search for valid and visible phone numbers displayed on a webpage, and as you say it would wrap a span class around it.
The span class would be defined within the extension code, and would insert the skype icon along with a clickable link that launches the skype application.
You also see similar functionality from iTunes and IRC, they have links in the irc://... format.